From patchwork Thu Oct 15 06:15:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 54984 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 8B17B23012 for ; Thu, 15 Oct 2015 06:15:36 +0000 (UTC) Received: by lbbpc3 with SMTP id pc3sf4901116lbb.2 for ; Wed, 14 Oct 2015 23:15:35 -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: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=+ViCAMKfFyX76RA9FbSp9mezBRnXvPow/JnZaxkzZGA=; b=Xo6ekyeVCsmdxYYZbXd3+3qXCnnDeEW4+rviscTrcUn1LzcNQLcEmRpooFY7j9ugpn rxdaHKQkDZtsA9uNCDL98wjVy7+ljws4y74wHcvM7URQBC9EvqKrIzpOF2d3R9z2dDsV 5+IKyHsCS2gNBRmHhbCgl3hzViXqmvGsUi3rmg5XDQINij4LBR28g7MSEinT0Q21C2P3 4uwCafPvSewM4+lv9Fiz6usajzQsY4Ds3jS8qLuFMaYocsdBgOrLfHa4oiNB0jNFC4zv XFmwkHaQZvdSydcG2PZ1of76oshLVOwWdxuWtECmyDNn1uP/bV7rCW/aPW+F8rmipFPq rDdA== X-Gm-Message-State: ALoCoQns6/DUecrBzaYVYQuSpZLbcont0449W20j3QZhuvnqeHcHlztP08RuDIt3ZN08s6AL4k/N X-Received: by 10.194.240.230 with SMTP id wd6mr1674575wjc.0.1444889735389; Wed, 14 Oct 2015 23:15:35 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.43.133 with SMTP id r127ls109895lfr.74.gmail; Wed, 14 Oct 2015 23:15:35 -0700 (PDT) X-Received: by 10.25.37.196 with SMTP id l187mr2320951lfl.101.1444889735081; Wed, 14 Oct 2015 23:15:35 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id bm7si8076319lbc.82.2015.10.14.23.15.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Oct 2015 23:15:35 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by lbbck17 with SMTP id ck17so61733017lbb.1 for ; Wed, 14 Oct 2015 23:15:34 -0700 (PDT) X-Received: by 10.112.163.131 with SMTP id yi3mr3505896lbb.36.1444889734882; Wed, 14 Oct 2015 23:15:34 -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 w3csp419944lbq; Wed, 14 Oct 2015 23:15:34 -0700 (PDT) X-Received: by 10.55.42.73 with SMTP id q70mr9342329qkh.22.1444889734056; Wed, 14 Oct 2015 23:15:34 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d7si11605649qkj.3.2015.10.14.23.15.33; Wed, 14 Oct 2015 23:15: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 AE18861FC0; Thu, 15 Oct 2015 06:15:33 +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_H2, 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 4F17161E70; Thu, 15 Oct 2015 06:15:30 +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 CD02561FB1; Thu, 15 Oct 2015 06:15:28 +0000 (UTC) Received: from mail-ig0-f176.google.com (mail-ig0-f176.google.com [209.85.213.176]) by lists.linaro.org (Postfix) with ESMTPS id 2F76C619F5 for ; Thu, 15 Oct 2015 06:15:28 +0000 (UTC) Received: by igbdj2 with SMTP id dj2so4833703igb.1 for ; Wed, 14 Oct 2015 23:15:27 -0700 (PDT) X-Received: by 10.50.2.67 with SMTP id 3mr8192129igs.19.1444889727688; Wed, 14 Oct 2015 23:15:27 -0700 (PDT) Received: from bala-Vostro-2520.caveonetworks.com ([111.93.218.67]) by smtp.gmail.com with ESMTPSA id nr10sm5085195igb.16.2015.10.14.23.15.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Oct 2015 23:15:27 -0700 (PDT) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Thu, 15 Oct 2015 11:45:18 +0530 Message-Id: <1444889718-9545-1-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: Classification patch Subject: [lng-odp] [API-NEXT/PATCH 1/1] validation: classification: add 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: bala.manoharan@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.182 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 odp_pktio_param_init() API is used to initialize odp_pktio_param_t params Signed-off-by: Balasubramanian Manoharan Reviewed-by: Bill Fischofer --- test/validation/classification/odp_classification_test_pmr.c | 2 +- test/validation/classification/odp_classification_tests.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/validation/classification/odp_classification_test_pmr.c b/test/validation/classification/odp_classification_test_pmr.c index 37de892..e794bda 100644 --- a/test/validation/classification/odp_classification_test_pmr.c +++ b/test/validation/classification/odp_classification_test_pmr.c @@ -80,7 +80,7 @@ odp_pktio_t create_pktio(odp_queue_type_t q_type) if (pool == ODP_POOL_INVALID) return ODP_PKTIO_INVALID; - memset(&pktio_param, 0, sizeof(pktio_param)); + odp_pktio_param_init(&pktio_param); if (q_type == ODP_QUEUE_TYPE_POLL) pktio_param.in_mode = ODP_PKTIN_MODE_POLL; else diff --git a/test/validation/classification/odp_classification_tests.c b/test/validation/classification/odp_classification_tests.c index 74d1060..fe55419 100644 --- a/test/validation/classification/odp_classification_tests.c +++ b/test/validation/classification/odp_classification_tests.c @@ -71,7 +71,7 @@ int classification_suite_init(void) return -1; } - memset(&pktio_param, 0, sizeof(pktio_param)); + odp_pktio_param_init(&pktio_param); pktio_param.in_mode = ODP_PKTIN_MODE_SCHED; pktio_loop = odp_pktio_open("loop", pool_default, &pktio_param);