From patchwork Wed Oct 14 11:51:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 54906 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by patches.linaro.org (Postfix) with ESMTPS id 60B0223012 for ; Wed, 14 Oct 2015 11:52:46 +0000 (UTC) Received: by lbcao8 with SMTP id ao8sf24467996lbc.1 for ; Wed, 14 Oct 2015 04:52: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=5Ayvu0p5kMzrQt5FAr/RjOwb0lMFhimVjtC9ok01gmA=; b=ds/yUQBz0znuFWqPrnIX42Lb9JZ5lAEAa74H1CO2dsH5yGf1PHUMhKZq6iZP3yJIBH 4RjpJGAQm9tsux0WRDt2lcJwfpa3dnZswHXZOfMo8F9bCWJ2kHto4yufuuwX5QRyfx0n PveyPHrtkAEK3z2NsjrHcADDHUWnmCmu8toLC9Ktkr8Sx1dty7Q2mTLQqhUHd3tGLLvh A3DOCzuNggYkNMcVfkTfJL5p7ACdxo3Zz/6Y8xkValbF3Fv6+t/bcHbVEm3DgYcY2qAo fyjdY7MlTvHDz0vG6R/8rtFAHIELMefFO6LU60bW3pE1TaEpyzB5/mJOoWutmqvH2e0d Y+fw== X-Gm-Message-State: ALoCoQkEpSGTsbyn2TUekxomAF7TPi1rmmxWKYhz3/qX8aP3Mfi5D6CkZlStZtDxTwu24JtNrP64 X-Received: by 10.112.12.132 with SMTP id y4mr668894lbb.0.1444823565346; Wed, 14 Oct 2015 04:52:45 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.40.133 with SMTP id o127ls26814lfo.38.gmail; Wed, 14 Oct 2015 04:52:45 -0700 (PDT) X-Received: by 10.112.167.8 with SMTP id zk8mr1369998lbb.15.1444823565211; Wed, 14 Oct 2015 04:52:45 -0700 (PDT) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id ps9si5274378lbb.163.2015.10.14.04.52.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Oct 2015 04:52:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by lffy185 with SMTP id y185so9953587lff.2 for ; Wed, 14 Oct 2015 04:52:45 -0700 (PDT) X-Received: by 10.25.77.133 with SMTP id a127mr904071lfb.19.1444823565025; Wed, 14 Oct 2015 04:52: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.59.35 with SMTP id w3csp2683156lbq; Wed, 14 Oct 2015 04:52:44 -0700 (PDT) X-Received: by 10.140.95.73 with SMTP id h67mr3311570qge.14.1444823564214; Wed, 14 Oct 2015 04:52:44 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id h133si7407412qhc.117.2015.10.14.04.52.43; Wed, 14 Oct 2015 04:52: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 D16E661BAF; Wed, 14 Oct 2015 11:52:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 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 [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 8BA5A61C8F; Wed, 14 Oct 2015 11:51: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 AE27A61B7D; Wed, 14 Oct 2015 11:51:13 +0000 (UTC) Received: from mail-ob0-f177.google.com (mail-ob0-f177.google.com [209.85.214.177]) by lists.linaro.org (Postfix) with ESMTPS id 7D85E61A22 for ; Wed, 14 Oct 2015 11:51:12 +0000 (UTC) Received: by obbwb3 with SMTP id wb3so10299979obb.0 for ; Wed, 14 Oct 2015 04:51:12 -0700 (PDT) X-Received: by 10.182.221.134 with SMTP id qe6mr1454704obc.56.1444823472061; Wed, 14 Oct 2015 04:51:12 -0700 (PDT) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id l205sm3993834oig.4.2015.10.14.04.51.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Oct 2015 04:51:11 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 14 Oct 2015 06:51:04 -0500 Message-Id: <1444823465-21264-4-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1444823465-21264-1-git-send-email-bill.fischofer@linaro.org> References: <1444823465-21264-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 4/5] performance: use odp_pktio_param_init() API 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.54 as permitted sender) smtp.mailfrom=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 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c index 5c237ef..390af67 100644 --- a/test/performance/odp_l2fwd.c +++ b/test/performance/odp_l2fwd.c @@ -285,7 +285,7 @@ static odp_pktio_t create_pktio(const char *dev, odp_pool_t pool, int ret; odp_pktio_param_t pktio_param; - memset(&pktio_param, 0, sizeof(pktio_param)); + odp_pktio_param_init(&pktio_param); if (mode == APPL_MODE_PKT_BURST) pktio_param.in_mode = ODP_PKTIN_MODE_RECV; diff --git a/test/performance/odp_pktio_perf.c b/test/performance/odp_pktio_perf.c index 018b7f5..efd26dc 100644 --- a/test/performance/odp_pktio_perf.c +++ b/test/performance/odp_pktio_perf.c @@ -704,7 +704,7 @@ static odp_pktio_t create_pktio(const char *iface, int schedule) if (pool == ODP_POOL_INVALID) return ODP_PKTIO_INVALID; - memset(&pktio_param, 0, sizeof(pktio_param)); + odp_pktio_param_init(&pktio_param); if (schedule) pktio_param.in_mode = ODP_PKTIN_MODE_SCHED;