From patchwork Wed Jul 1 01:39:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 50499 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F3D98229DF for ; Wed, 1 Jul 2015 01:43:12 +0000 (UTC) Received: by laar3 with SMTP id r3sf8449846laa.1 for ; Tue, 30 Jun 2015 18:43:12 -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=73v5H41KNh88enSrD44xPqQwzZ3sMyTnSudufi43cA8=; b=erxNwHFQojeR2ZJ8acrbCS/4NymQ7R23tlV/5lWVotnYMOZjvrHvdmW+Ui/ea8SXFp j8npTgG7/SjmXcX31qaM3CKMFErPkM8eM7539YRBqg1qEmmSyAXDEwL7jwCMFPubFKBc 10D+YDBcBMnQsBnK+UisRvYogApHmqCe0lbcr7mlenF6Fmxi5MSXV47Y97WCgeTaZxw7 NioecUNyHCt1ew0S8X/vDYJYP5r9Iac7IdKxCxUvTBNSR196U4OWum9SyH/gqf3Pvp5w WS+3QdOAFZrBRDxkKiyp+f3JZ+g/bpLDpCYqpKDJWaQ1B6ergSIZfohuNdvHgVN9LDhJ p3nQ== X-Gm-Message-State: ALoCoQl9qJkrT8S26+H2pLloCH2SarYmrhrpCjxLtCtaanXgesjMqIv3YcjFnQLFGPDMvEjJw8qE X-Received: by 10.152.2.196 with SMTP id 4mr15659653law.10.1435714992459; Tue, 30 Jun 2015 18:43:12 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.10 with SMTP id p10ls122033lag.29.gmail; Tue, 30 Jun 2015 18:43:12 -0700 (PDT) X-Received: by 10.153.8.171 with SMTP id dl11mr22975374lad.77.1435714992307; Tue, 30 Jun 2015 18:43:12 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id 2si246727lav.112.2015.06.30.18.43.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jun 2015 18:43:12 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbbpo10 with SMTP id po10so4039774lbb.3 for ; Tue, 30 Jun 2015 18:43:12 -0700 (PDT) X-Received: by 10.112.204.6 with SMTP id ku6mr22583154lbc.73.1435714992209; Tue, 30 Jun 2015 18:43:12 -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 hn6csp270749lbb; Tue, 30 Jun 2015 18:43:11 -0700 (PDT) X-Received: by 10.140.108.6 with SMTP id i6mr29905462qgf.73.1435714991342; Tue, 30 Jun 2015 18:43:11 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r7si408500qha.96.2015.06.30.18.43.10; Tue, 30 Jun 2015 18:43:11 -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 C3FCB61F0D; Wed, 1 Jul 2015 01:43:09 +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 6016761F00; Wed, 1 Jul 2015 01:40:10 +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 A007561EFF; Wed, 1 Jul 2015 01:40:06 +0000 (UTC) Received: from mail-oi0-f50.google.com (mail-oi0-f50.google.com [209.85.218.50]) by lists.linaro.org (Postfix) with ESMTPS id 50EF161EFF for ; Wed, 1 Jul 2015 01:39:39 +0000 (UTC) Received: by oiyy130 with SMTP id y130so21422159oiy.0 for ; Tue, 30 Jun 2015 18:39:39 -0700 (PDT) X-Received: by 10.60.131.147 with SMTP id om19mr22189681oeb.78.1435714779378; Tue, 30 Jun 2015 18:39:39 -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 p184sm226149oig.10.2015.06.30.18.39.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Jun 2015 18:39:38 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 30 Jun 2015 20:39:20 -0500 Message-Id: <1435714761-23951-9-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1435714761-23951-1-git-send-email-bill.fischofer@linaro.org> References: <1435714761-23951-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 09/10] 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.217.181 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 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..47416b2 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; 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;