From patchwork Thu Jun 25 12:09:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 50319 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C05B9228FC for ; Thu, 25 Jun 2015 12:11:46 +0000 (UTC) Received: by lbcak1 with SMTP id ak1sf18364615lbc.2 for ; Thu, 25 Jun 2015 05:11:45 -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=asxPeXZJvNboQ5DA+cU0MWQ0whEnGeu3izUz6aHT93k=; b=ARxUzjDwvfzZ0c2o8JfpRjSOlzsKhefPa4GTm98iQvLL0haMKaKjM/A9LryQVIBSyv 7lTkk77YzdLbQpfpTFc3w7thuu0O/uHX6tiH3Yl382Z9hrsdgHCWwgroPiFjfukdgNS7 GwdLG8S9CSd6sCN8PTODd9yAvACmQsfddP06Aofx0k6TM5FMzkKdnLCOCX6LBewT25CL w45Jc5UzVzfRyGD6hNWK/BkhZoGi1aIrkPB9190hAHo7v1v28s53NRAsqbbQqLbnDgD2 Yqbrot96HOVc4He+C2Bh3k/4x2K2cq4lUxDSmnTfaAqzslgEny1fNlLP3u8Wbd8NNrdG iazQ== X-Gm-Message-State: ALoCoQlM5rKZ9gfXwSJVAnfjSKX+IgGaB6RudreRd9W1e4mLqt2OkHLY6NNcq4Mi0sThFJM1JZOL X-Received: by 10.180.81.170 with SMTP id b10mr2201619wiy.4.1435234305663; Thu, 25 Jun 2015 05:11:45 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.178.195 with SMTP id da3ls336002lac.43.gmail; Thu, 25 Jun 2015 05:11:45 -0700 (PDT) X-Received: by 10.112.161.40 with SMTP id xp8mr44202282lbb.71.1435234305396; Thu, 25 Jun 2015 05:11:45 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id f10si24541617laf.15.2015.06.25.05.11.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jun 2015 05:11:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by lagi2 with SMTP id i2so43771305lag.2 for ; Thu, 25 Jun 2015 05:11:45 -0700 (PDT) X-Received: by 10.152.7.7 with SMTP id f7mr45112068laa.106.1435234305285; Thu, 25 Jun 2015 05:11:45 -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 hn6csp560250lbb; Thu, 25 Jun 2015 05:11:44 -0700 (PDT) X-Received: by 10.140.135.6 with SMTP id 6mr62120233qhh.101.1435234304041; Thu, 25 Jun 2015 05:11:44 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id t19si29083035qge.112.2015.06.25.05.11.43; Thu, 25 Jun 2015 05:11:44 -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 4FAEF61B2D; Thu, 25 Jun 2015 12:11:43 +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 8F4BA61DD7; Thu, 25 Jun 2015 12:10:20 +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 22AF261E14; Thu, 25 Jun 2015 12:10:12 +0000 (UTC) Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by lists.linaro.org (Postfix) with ESMTPS id 95B9361DD5 for ; Thu, 25 Jun 2015 12:09:47 +0000 (UTC) Received: by oiax193 with SMTP id x193so50796549oia.2 for ; Thu, 25 Jun 2015 05:09:47 -0700 (PDT) X-Received: by 10.202.71.204 with SMTP id u195mr36959987oia.36.1435234187201; Thu, 25 Jun 2015 05:09:47 -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.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Jun 2015 05:09:46 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 25 Jun 2015 07:09:32 -0500 Message-Id: <1435234172-2015-6-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 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.45 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);