From patchwork Sat Jul 4 23:12:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 50660 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 ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5862722916 for ; Sat, 4 Jul 2015 23:14:27 +0000 (UTC) Received: by wipp2 with SMTP id p2sf21442144wip.2 for ; Sat, 04 Jul 2015 16:14:26 -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=OIrzsS9+8KN/vCOQeW/b3msRt3O29AZRHZARawS06EM=; b=FVlihH+tLjdZamYJX2w8eHesCfpcmCBYbPMqaGrxJkKxdOOSORJEqH757p2QOwum6r fIBhlR5nMJK0O2Bayql/nDu5tIoSMsYGJwLm+0bMWvzHDPOu4BNTkabs3eMllr3XU6/8 9lVBkSKHiaFfPH2m7/yOaKc391CrOqhHnNjISI7UMUNiOrz1DiDioqBH8jLxiwE/Zjip 5c0pW2OTrjPqehn2GHrwQNXIafQ188fg4TVCOr4u2ONtDAGHk2lQ88Nb6I1QWeXcETAR UGxYQbZ52c6biaQSMSQwf4DjfNxSAkEGpHBXeslYYeNQTm4afIUzvMSs1zxHryUtsqlz lVpw== X-Gm-Message-State: ALoCoQkRjjBhYX/8xpzY7G9RJepVE5mHDInI/BSAALN/WV7o7fIS+kyDxMBt7+9RmrqLZGpK7dHy X-Received: by 10.152.37.101 with SMTP id x5mr26372735laj.5.1436051666460; Sat, 04 Jul 2015 16:14:26 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.202 with SMTP id 10ls644324law.79.gmail; Sat, 04 Jul 2015 16:14:26 -0700 (PDT) X-Received: by 10.153.4.12 with SMTP id ca12mr42206999lad.20.1436051666045; Sat, 04 Jul 2015 16:14:26 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id us12si11199881lbb.107.2015.07.04.16.14.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Jul 2015 16:14:25 -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 lagh6 with SMTP id h6so118244529lag.2 for ; Sat, 04 Jul 2015 16:14:25 -0700 (PDT) X-Received: by 10.152.6.69 with SMTP id y5mr41891112lay.72.1436051665251; Sat, 04 Jul 2015 16:14:25 -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.108.230 with SMTP id hn6csp853448lbb; Sat, 4 Jul 2015 16:14:24 -0700 (PDT) X-Received: by 10.140.234.1 with SMTP id f1mr62781128qhc.48.1436051663890; Sat, 04 Jul 2015 16:14:23 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f5si15616192qhc.72.2015.07.04.16.14.16; Sat, 04 Jul 2015 16:14:23 -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 2DE9B61DAD; Sat, 4 Jul 2015 23:14:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id AF2D761CE0; Sat, 4 Jul 2015 23:12:41 +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 22AE561CCF; Sat, 4 Jul 2015 23:12:20 +0000 (UTC) Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by lists.linaro.org (Postfix) with ESMTPS id 231A961CCD for ; Sat, 4 Jul 2015 23:12:18 +0000 (UTC) Received: by oiyy130 with SMTP id y130so97149814oiy.0 for ; Sat, 04 Jul 2015 16:12:17 -0700 (PDT) X-Received: by 10.202.49.212 with SMTP id x203mr19260769oix.81.1436051537629; Sat, 04 Jul 2015 16:12:17 -0700 (PDT) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id c9sm7563182oih.11.2015.07.04.16.12.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 04 Jul 2015 16:12:17 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Sat, 4 Jul 2015 18:12:05 -0500 Message-Id: <1436051526-15926-5-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1436051526-15926-1-git-send-email-bill.fischofer@linaro.org> References: <1436051526-15926-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv3 5/6] example: use odp_pool_param_init routine 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.mail=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 | 4 ++-- example/packet/odp_pktio.c | 2 +- example/timer/odp_timer_test.c | 1 + 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/example/classifier/odp_classifier.c b/example/classifier/odp_classifier.c index 643e16c..d813197 100644 --- a/example/classifier/odp_classifier.c +++ b/example/classifier/odp_classifier.c @@ -429,7 +429,7 @@ int main(int argc, char *argv[]) printf("cpu mask: %s\n", cpumaskstr); /* Create packet pool */ - memset(¶ms, 0, sizeof(params)); + odp_pool_param_init(¶ms); params.pkt.seg_len = SHM_PKT_POOL_BUF_SIZE; params.pkt.len = SHM_PKT_POOL_BUF_SIZE; params.pkt.num = SHM_PKT_POOL_SIZE/SHM_PKT_POOL_BUF_SIZE; diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index 0ff264c..ff8aca9 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -648,7 +648,7 @@ int main(int argc, char *argv[]) printf("cpu mask: %s\n", cpumaskstr); /* Create packet pool */ - memset(¶ms, 0, sizeof(params)); + odp_pool_param_init(¶ms); params.pkt.seg_len = SHM_PKT_POOL_BUF_SIZE; params.pkt.len = SHM_PKT_POOL_BUF_SIZE; params.pkt.num = SHM_PKT_POOL_SIZE/SHM_PKT_POOL_BUF_SIZE; diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c index 4928985..506e4f2 100644 --- a/example/ipsec/odp_ipsec.c +++ b/example/ipsec/odp_ipsec.c @@ -348,7 +348,7 @@ void ipsec_init_pre(void) } /* Create output buffer pool */ - memset(¶ms, 0, sizeof(params)); + odp_pool_param_init(¶ms); params.pkt.seg_len = SHM_OUT_POOL_BUF_SIZE; params.pkt.len = SHM_OUT_POOL_BUF_SIZE; params.pkt.num = SHM_PKT_POOL_BUF_COUNT; @@ -1288,7 +1288,7 @@ main(int argc, char *argv[]) odp_barrier_init(&sync_barrier, num_workers); /* Create packet buffer pool */ - memset(¶ms, 0, sizeof(params)); + odp_pool_param_init(¶ms); params.pkt.seg_len = SHM_PKT_POOL_BUF_SIZE; params.pkt.len = SHM_PKT_POOL_BUF_SIZE; params.pkt.num = SHM_PKT_POOL_BUF_COUNT; diff --git a/example/packet/odp_pktio.c b/example/packet/odp_pktio.c index f08d9f4..888d4c6 100644 --- a/example/packet/odp_pktio.c +++ b/example/packet/odp_pktio.c @@ -362,7 +362,7 @@ int main(int argc, char *argv[]) printf("cpu mask: %s\n", cpumaskstr); /* Create packet pool */ - memset(¶ms, 0, sizeof(params)); + odp_pool_param_init(¶ms); params.pkt.seg_len = SHM_PKT_POOL_BUF_SIZE; params.pkt.len = SHM_PKT_POOL_BUF_SIZE; params.pkt.num = SHM_PKT_POOL_SIZE/SHM_PKT_POOL_BUF_SIZE; diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c index f4af0e2..40df498 100644 --- a/example/timer/odp_timer_test.c +++ b/example/timer/odp_timer_test.c @@ -415,6 +415,7 @@ int main(int argc, char *argv[]) /* * Create pool for timeouts */ + odp_pool_param_init(¶ms); params.tmo.num = NUM_TMOS; params.type = ODP_POOL_TIMEOUT;