From patchwork Sat Jul 4 23:12:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 50661 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 1B20322916 for ; Sat, 4 Jul 2015 23:14:42 +0000 (UTC) Received: by wiwz6 with SMTP id z6sf42015193wiw.0 for ; Sat, 04 Jul 2015 16:14:41 -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=bOMvbq1CoIrOBECA5HmrdMZwd4xsQL3aj4n4FUu/FOE=; b=YdWmr/yKX70+YX5fS8FP4+EdGY/8HWo3QjyKLn924hTOvcQQSX/F+tKNn9jBiQgJl9 3Ndbsnqknf3Tj0j2MFk+A147YMgjXepr9z8ejk+rDQ8rb+hWBdXpLHgWrBu+9+I32O7a ZtNgyPV0UqPRUSv3r326uH0dn52KNhHEZ5MR0OVuWmYdxoZcouam9UtGK1uBCEb0aIAD pB3XQRH+ESyawZz7x/UsfLy2U/CK8t+PO//SxbLJ0ArQ1aQOf2kPDZiw0ZJWPtZFD+Fc nLfGHMxqfYr9b13LMVTV8lRfOQt/TsY0EWHAAufh/O3iy5sDF4ZuYSnSu7bLB4673kVt jg9w== X-Gm-Message-State: ALoCoQlJIsNfrm/e3sd8Rjfue5mc1aUKytQShOfRP1ieB2aQcf0c+mJiqhVh+SgZWQJDPjYCoDKV X-Received: by 10.181.12.104 with SMTP id ep8mr24192954wid.7.1436051681451; Sat, 04 Jul 2015 16:14:41 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.37 with SMTP id w5ls540073laa.77.gmail; Sat, 04 Jul 2015 16:14:41 -0700 (PDT) X-Received: by 10.152.6.105 with SMTP id z9mr41564927laz.98.1436051681024; Sat, 04 Jul 2015 16:14:41 -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 u10si11207194lag.68.2015.07.04.16.14.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Jul 2015 16:14:41 -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 laar3 with SMTP id r3so118448628laa.0 for ; Sat, 04 Jul 2015 16:14:40 -0700 (PDT) X-Received: by 10.112.166.106 with SMTP id zf10mr4185459lbb.36.1436051680919; Sat, 04 Jul 2015 16:14:40 -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 hn6csp853538lbb; Sat, 4 Jul 2015 16:14:40 -0700 (PDT) X-Received: by 10.140.104.147 with SMTP id a19mr63060442qgf.71.1436051679709; Sat, 04 Jul 2015 16:14:39 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 25si15662489qku.45.2015.07.04.16.14.38; Sat, 04 Jul 2015 16:14:39 -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 9E74961CD8; Sat, 4 Jul 2015 23:14:38 +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 11F1161DF4; Sat, 4 Jul 2015 23:12:44 +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 EB87D61CCE; Sat, 4 Jul 2015 23:12:20 +0000 (UTC) Received: from mail-ob0-f169.google.com (mail-ob0-f169.google.com [209.85.214.169]) by lists.linaro.org (Postfix) with ESMTPS id 67A9861CCC for ; Sat, 4 Jul 2015 23:12:19 +0000 (UTC) Received: by obbop1 with SMTP id op1so87129872obb.2 for ; Sat, 04 Jul 2015 16:12:19 -0700 (PDT) X-Received: by 10.182.40.165 with SMTP id y5mr38394539obk.21.1436051538972; Sat, 04 Jul 2015 16:12:18 -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.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 04 Jul 2015 16:12:18 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Sat, 4 Jul 2015 18:12:06 -0500 Message-Id: <1436051526-15926-6-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 6/6] performance: 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.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 --- test/performance/odp_l2fwd.c | 2 +- test/performance/odp_pktio_perf.c | 4 ++-- test/performance/odp_scheduling.c | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c index 5d4b833..2fbba12 100644 --- a/test/performance/odp_l2fwd.c +++ b/test/performance/odp_l2fwd.c @@ -409,7 +409,7 @@ int main(int argc, char *argv[]) } /* 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/test/performance/odp_pktio_perf.c b/test/performance/odp_pktio_perf.c index 3a22f9d..6d41980 100644 --- a/test/performance/odp_pktio_perf.c +++ b/test/performance/odp_pktio_perf.c @@ -674,7 +674,7 @@ static odp_pktio_t create_pktio(const char *iface) char pool_name[ODP_POOL_NAME_LEN]; odp_pool_param_t params; - memset(¶ms, 0, sizeof(params)); + odp_pool_param_init(¶ms); params.pkt.len = PKT_HDR_LEN + gbl_args->args.pkt_len; params.pkt.seg_len = params.pkt.len; params.pkt.num = PKT_BUF_NUM; @@ -697,7 +697,7 @@ static int test_init(void) odp_queue_t inq_def; char inq_name[ODP_QUEUE_NAME_LEN]; - memset(¶ms, 0, sizeof(params)); + odp_pool_param_init(¶ms); params.pkt.len = PKT_HDR_LEN + gbl_args->args.pkt_len; params.pkt.seg_len = params.pkt.len; params.pkt.num = PKT_BUF_NUM; diff --git a/test/performance/odp_scheduling.c b/test/performance/odp_scheduling.c index 99f0f9b..ebdc06b 100644 --- a/test/performance/odp_scheduling.c +++ b/test/performance/odp_scheduling.c @@ -911,6 +911,7 @@ int main(int argc, char *argv[]) * Create message pool */ + odp_pool_param_init(¶ms); params.buf.size = sizeof(test_message_t); params.buf.align = 0; params.buf.num = MSG_POOL_SIZE/sizeof(test_message_t);