From patchwork Wed Jul 1 01:39:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 50500 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 46D2E229DF for ; Wed, 1 Jul 2015 01:43:36 +0000 (UTC) Received: by wiwz6 with SMTP id z6sf12011886wiw.0 for ; Tue, 30 Jun 2015 18:43:36 -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=L4aULxLsuK5+j9cObpVBmpP7ihwnRgfFirRujYw2+3A=; b=Y1m3QamBaCj+TUY+MMMcxXVmBbGBcIdCSj0kxp58BkEeRIqV2wzQiAyAhieUMWmKtH cCxhIwHzLyhg6WN6LnY8ULXtav7wlYaqwcLGuztxxms/kxqaFdZyzSl0IyPWRjC0ylDt 7YehkzTffdE0kAVGINRnXhApFQKbYUFC4o/e1iYP6hWF/2pPeMq0ncEU5eqT319MCsop r/VYSY/lNX/+m4wRC1auI4+HHq1mEURk/HO2/4Lbw+64xys6YPLFCpPsIiFLqJkQqVCK kJmrp+LkkQQZyZa9nF3JIsePwDcp+36nVT68Ox4hzt+9gLoJotisiX8inV1V6JbmD4hx eUHg== X-Gm-Message-State: ALoCoQnNjMz8BU+gIOjGwsf/VaOwZqjrVGOiRh0m45BqB1+JtisJQlr4Oy2aoCLbeZmbRrqYmO0q X-Received: by 10.152.22.163 with SMTP id e3mr9034048laf.6.1435715015934; Tue, 30 Jun 2015 18:43:35 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.40 with SMTP id kz8ls122878lab.24.gmail; Tue, 30 Jun 2015 18:43:35 -0700 (PDT) X-Received: by 10.152.181.34 with SMTP id dt2mr22348038lac.84.1435715015660; Tue, 30 Jun 2015 18:43:35 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id ax10si251669lbc.94.2015.06.30.18.43.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jun 2015 18:43:35 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbcui10 with SMTP id ui10so4039285lbc.0 for ; Tue, 30 Jun 2015 18:43:35 -0700 (PDT) X-Received: by 10.112.198.74 with SMTP id ja10mr22527076lbc.19.1435715015489; Tue, 30 Jun 2015 18:43:35 -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 hn6csp270913lbb; Tue, 30 Jun 2015 18:43:34 -0700 (PDT) X-Received: by 10.55.24.166 with SMTP id 38mr50123835qky.70.1435715014184; Tue, 30 Jun 2015 18:43:34 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id w132si411599qha.88.2015.06.30.18.43.33; Tue, 30 Jun 2015 18:43:34 -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 C810561F10; Wed, 1 Jul 2015 01:43:32 +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 BE96061F05; Wed, 1 Jul 2015 01:40:27 +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 A6AC061F28; Wed, 1 Jul 2015 01:40:24 +0000 (UTC) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by lists.linaro.org (Postfix) with ESMTPS id D08EC61E34 for ; Wed, 1 Jul 2015 01:39:40 +0000 (UTC) Received: by oigx81 with SMTP id x81so21391232oig.1 for ; Tue, 30 Jun 2015 18:39:40 -0700 (PDT) X-Received: by 10.60.68.44 with SMTP id s12mr22202844oet.22.1435714780828; Tue, 30 Jun 2015 18:39:40 -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.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Jun 2015 18:39:40 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 30 Jun 2015 20:39:21 -0500 Message-Id: <1435714761-23951-10-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 10/10] 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.217.175 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 9ff159b..b5254e0 100644 --- a/test/performance/odp_l2fwd.c +++ b/test/performance/odp_l2fwd.c @@ -414,7 +414,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 7a4582e..d8a720b 100644 --- a/test/performance/odp_pktio_perf.c +++ b/test/performance/odp_pktio_perf.c @@ -675,7 +675,7 @@ static odp_pktio_t create_pktio(const char *iface, int schedule) odp_pool_param_t params; odp_pktio_param_t pktio_param; - 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; @@ -707,7 +707,7 @@ static int test_init(void) int schedule; 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 1fbeb94..a22e259 100644 --- a/test/performance/odp_scheduling.c +++ b/test/performance/odp_scheduling.c @@ -908,6 +908,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);