From patchwork Wed Oct 14 11:51:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 54905 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 6B72423012 for ; Wed, 14 Oct 2015 11:52:14 +0000 (UTC) Received: by wijq8 with SMTP id q8sf25290832wij.1 for ; Wed, 14 Oct 2015 04:52:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=sQSGtHg0f+vwREKaYjG2Pz/QO6WZeN7SOTVwJUntWY0=; b=fmXRQBRU5kJ21qdWIHqs+U5BqD8yIaldr/U7o3Ffe7sKueE4ZcHLoU1hpuZqq4Cxqv eZb0ihNRibRItjNmqRQUcNjPNyLvSsgX+3KOiiSveotGLXVW2MqygjUXKW4w525hu6QR 37yzHDrn0qNk8vzkUjU3JXWbcyufkwqA7aGNhS8xmOJmE7PRc09n3ZKmE/WglFcvk3NI RUgw8MLIiUtt8m61VnvhE9Vc+OadCkNRbX6kHcNlmrK+7SBgfAFPh3WUc7rXWynH4YOy P9kGgxLoTx0qu+yI7udmJCRwyerXPtKHh7EnLR54bmWrggU2bY9X6Wj5WThCEsuJNnYL idQg== X-Gm-Message-State: ALoCoQnJAXzF2h4Po9TgLF558bSk7PTJs+8oACO1mKUo91zYN8gHx3tXg0hCIKHJvMpZmDG03R8x X-Received: by 10.112.54.197 with SMTP id l5mr655642lbp.21.1444823533690; Wed, 14 Oct 2015 04:52:13 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.32.207 with SMTP id g198ls28190lfg.18.gmail; Wed, 14 Oct 2015 04:52:13 -0700 (PDT) X-Received: by 10.25.86.213 with SMTP id k204mr899550lfb.36.1444823533543; Wed, 14 Oct 2015 04:52:13 -0700 (PDT) Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id h10si5323742lfh.15.2015.10.14.04.52.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Oct 2015 04:52:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by lfeh64 with SMTP id h64so9936192lfe.3 for ; Wed, 14 Oct 2015 04:52:13 -0700 (PDT) X-Received: by 10.25.86.213 with SMTP id k204mr899539lfb.36.1444823533086; Wed, 14 Oct 2015 04:52:13 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp2682903lbq; Wed, 14 Oct 2015 04:52:12 -0700 (PDT) X-Received: by 10.140.101.119 with SMTP id t110mr3330055qge.71.1444823530868; Wed, 14 Oct 2015 04:52:10 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f10si7452729qka.49.2015.10.14.04.52.10; Wed, 14 Oct 2015 04:52:10 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 13C9B61A25; Wed, 14 Oct 2015 11:52:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 46C7361C6F; Wed, 14 Oct 2015 11:51:19 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id D700E61B7D; Wed, 14 Oct 2015 11:51:12 +0000 (UTC) Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) by lists.linaro.org (Postfix) with ESMTPS id CA9FD61A21 for ; Wed, 14 Oct 2015 11:51:11 +0000 (UTC) Received: by obbwb3 with SMTP id wb3so10299815obb.0 for ; Wed, 14 Oct 2015 04:51:11 -0700 (PDT) X-Received: by 10.182.19.167 with SMTP id g7mr1434194obe.13.1444823471331; Wed, 14 Oct 2015 04:51:11 -0700 (PDT) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id l205sm3993834oig.4.2015.10.14.04.51.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Oct 2015 04:51:10 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 14 Oct 2015 06:51:03 -0500 Message-Id: <1444823465-21264-3-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1444823465-21264-1-git-send-email-bill.fischofer@linaro.org> References: <1444823465-21264-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 3/5] example: use odp_pktio_param_init() API X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bill.fischofer@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Bill Fischofer --- example/classifier/odp_classifier.c | 2 +- example/generator/odp_generator.c | 2 +- example/ipsec/odp_ipsec.c | 2 +- example/packet/odp_pktio.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/classifier/odp_classifier.c b/example/classifier/odp_classifier.c index 05a1eaa..18cd3bb 100644 --- a/example/classifier/odp_classifier.c +++ b/example/classifier/odp_classifier.c @@ -227,7 +227,7 @@ static odp_pktio_t create_pktio(const char *dev, odp_pool_t pool) int ret; odp_pktio_param_t pktio_param; - memset(&pktio_param, 0, sizeof(pktio_param)); + odp_pktio_param_init(&pktio_param); pktio_param.in_mode = ODP_PKTIN_MODE_SCHED; /* Open a packet IO instance */ diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index 5a0d5a4..f80104c 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -330,7 +330,7 @@ static odp_pktio_t create_pktio(const char *dev, odp_pool_t pool) odp_queue_t inq_def; odp_pktio_param_t pktio_param; - memset(&pktio_param, 0, sizeof(pktio_param)); + odp_pktio_param_init(&pktio_param); pktio_param.in_mode = ODP_PKTIN_MODE_SCHED; /* Open a packet IO instance */ diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c index 9c1e03c..474f4a5 100644 --- a/example/ipsec/odp_ipsec.c +++ b/example/ipsec/odp_ipsec.c @@ -496,7 +496,7 @@ void initialize_intf(char *intf) char src_mac_str[MAX_STRING]; odp_pktio_param_t pktio_param; - memset(&pktio_param, 0, sizeof(pktio_param)); + odp_pktio_param_init(&pktio_param); if (getenv("ODP_IPSEC_USE_POLL_QUEUES")) pktio_param.in_mode = ODP_PKTIN_MODE_POLL; diff --git a/example/packet/odp_pktio.c b/example/packet/odp_pktio.c index 4a8686e..93c38f5 100644 --- a/example/packet/odp_pktio.c +++ b/example/packet/odp_pktio.c @@ -118,7 +118,7 @@ static odp_pktio_t create_pktio(const char *dev, odp_pool_t pool, int mode) int ret; odp_pktio_param_t pktio_param; - memset(&pktio_param, 0, sizeof(pktio_param)); + odp_pktio_param_init(&pktio_param); switch (mode) { case APPL_MODE_PKT_BURST: