From patchwork Thu Jun 25 12:09:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 50320 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 01B99228FC for ; Thu, 25 Jun 2015 12:11:49 +0000 (UTC) Received: by wgfj7 with SMTP id j7sf18681963wgf.1 for ; Thu, 25 Jun 2015 05:11:48 -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=0pJY6daAx2UTF13G42lM/SqIQF2FPAnbPvbe069iAo4=; b=UyGzUu//eyyEHRsG54xKsXTth3etoTQ2l9GKEiZwJEHEnVx8I1AG6EsoWKEf7RL1jG gq8PcAUlRtJen/AnoAvFpzUTd+3Q3UlvGgThBA7rCjMyedSQpzINRHyoE8BPo5ctDR4h WHYv9+IRLr+g41bABSsoPeJRXuuN5sW9621YsdsS6RC5WkxCqUbQVBX7pkHXsCh0N4Kw QwSujwqk4UiTYQqKyxH5Qk8VEQsLMSACpiYnJEz51KxMedzfGBrBx1tSsyhWU7173xme gLFlObfMjnuGAiJfbUiZPM8GCi7/6x8XTdG2cdr/Y6GkjO/z7/YPCqbFlo9qxhXMB4MH rVGg== X-Gm-Message-State: ALoCoQmNUeLRbj01++ybLk9qs5DLVY3JA0wCXx9zJ29fpM7eTsep9IieVn5A+81CgTDlA4ygtYnC X-Received: by 10.180.35.162 with SMTP id i2mr2199437wij.6.1435234308337; Thu, 25 Jun 2015 05:11:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.129 with SMTP id s1ls374521las.89.gmail; Thu, 25 Jun 2015 05:11:48 -0700 (PDT) X-Received: by 10.152.18.199 with SMTP id y7mr43929253lad.39.1435234308101; Thu, 25 Jun 2015 05:11:48 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id qq9si24525175lbc.143.2015.06.25.05.11.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jun 2015 05:11:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by laka10 with SMTP id a10so43727563lak.0 for ; Thu, 25 Jun 2015 05:11:48 -0700 (PDT) X-Received: by 10.152.88.68 with SMTP id be4mr43203799lab.76.1435234307999; Thu, 25 Jun 2015 05:11:47 -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 hn6csp560295lbb; Thu, 25 Jun 2015 05:11:47 -0700 (PDT) X-Received: by 10.55.52.12 with SMTP id b12mr94851826qka.22.1435234306784; Thu, 25 Jun 2015 05:11:46 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id i8si29105910qgf.23.2015.06.25.05.11.46; Thu, 25 Jun 2015 05:11:46 -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 14EEA61B60; Thu, 25 Jun 2015 12:11:46 +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_H3, RCVD_IN_MSPIKE_WL, 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 D516661814; Thu, 25 Jun 2015 12:10:23 +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 CA33C61E14; Thu, 25 Jun 2015 12:10:15 +0000 (UTC) Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) by lists.linaro.org (Postfix) with ESMTPS id 316CF61D66 for ; Thu, 25 Jun 2015 12:09:46 +0000 (UTC) Received: by oigx81 with SMTP id x81so50781407oig.1 for ; Thu, 25 Jun 2015 05:09:45 -0700 (PDT) X-Received: by 10.202.176.213 with SMTP id z204mr36775288oie.38.1435234185793; Thu, 25 Jun 2015 05:09:45 -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 yw8sm15754454obb.29.2015.06.25.05.09.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Jun 2015 05:09:45 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 25 Jun 2015 07:09:31 -0500 Message-Id: <1435234172-2015-5-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1435234172-2015-1-git-send-email-bill.fischofer@linaro.org> References: <1435234172-2015-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 5/6] examples: use new 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.51 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 | 4 ++-- example/ipsec/odp_ipsec.c | 4 ++-- example/packet/odp_pktio.c | 2 +- example/timer/odp_timer_test.c | 1 + 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/example/classifier/odp_classifier.c b/example/classifier/odp_classifier.c index ef95f95..e9b3700 100644 --- a/example/classifier/odp_classifier.c +++ b/example/classifier/odp_classifier.c @@ -430,7 +430,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 484e6bc..936a896 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -649,7 +649,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; @@ -678,7 +678,7 @@ int main(int argc, char *argv[]) odp_timer_pool_start(); /* Create timeout pool */ - memset(¶ms, 0, sizeof(params)); + odp_pool_param_init(¶ms); params.tmo.num = tparams.num_timers; /* One timeout per timer */ params.type = ODP_POOL_TIMEOUT; diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c index da88b17..0924a6e 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; @@ -1294,7 +1294,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 7430b09..c485530 100644 --- a/example/packet/odp_pktio.c +++ b/example/packet/odp_pktio.c @@ -376,7 +376,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 da7b208..ff1a8ce 100644 --- a/example/timer/odp_timer_test.c +++ b/example/timer/odp_timer_test.c @@ -412,6 +412,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;