From patchwork Wed Jun 3 16:44:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 49489 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C3F9424612 for ; Wed, 3 Jun 2015 16:49:08 +0000 (UTC) Received: by wgv5 with SMTP id 5sf4032065wgv.0 for ; Wed, 03 Jun 2015 09:49:08 -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:cc: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=edys/Jbc2fue0zPftT5Hm2EuQkohGkXK3a2jLl7q9eg=; b=MTNwDFwabPusEOQvDKY7BH/CBOgIKuMPF8/xFuTfvf7mtkCQDWQMEezQrgsCt7aMBT tVVvAAKx/YIgyGNr1bXVamVgcIefX/0bHtj5ieMYNgQqIpUBEX241tIFg8UcY+Uiq5g+ Si/5oVzn12JbdfG8hEN5womAvpKjf/bzDbFmvsg4U9fpX/gty13LGGWk68tWE9p1vQjr fE8XnrrG5FmS+WtOC2+Z3CRuybPZOzjd1iIfR9JWSKkFJ6Jt3XJBB5Uu7unCUXOHI0Wx p2H/cHk6tjchevAt+OykFEyinTKnmJAAD68XZkTUIkmFdHVUEc/UFhAcBQOzPM+vkISb KIEQ== X-Gm-Message-State: ALoCoQkrg/nr4093PAhn6Pekw763gVsTRGcCL2Tmcq0CklddRJ5z9958QVntdxhvSTlL7D0dJdO4 X-Received: by 10.112.118.162 with SMTP id kn2mr31741360lbb.22.1433350148120; Wed, 03 Jun 2015 09:49:08 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.225.167 with SMTP id rl7ls92831lac.74.gmail; Wed, 03 Jun 2015 09:49:08 -0700 (PDT) X-Received: by 10.112.157.36 with SMTP id wj4mr32588272lbb.115.1433350147962; Wed, 03 Jun 2015 09:49:07 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id qe6si18497113lbb.7.2015.06.03.09.49.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jun 2015 09:49:07 -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 labpy14 with SMTP id py14so12966896lab.0 for ; Wed, 03 Jun 2015 09:49:07 -0700 (PDT) X-Received: by 10.112.93.37 with SMTP id cr5mr11598692lbb.106.1433350147852; Wed, 03 Jun 2015 09:49:07 -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 hn6csp4002177lbb; Wed, 3 Jun 2015 09:49:06 -0700 (PDT) X-Received: by 10.140.233.22 with SMTP id e22mr3383712qhc.67.1433350146206; Wed, 03 Jun 2015 09:49:06 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o18si1148790qge.57.2015.06.03.09.49.02; Wed, 03 Jun 2015 09:49:06 -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 6563761F9A; Wed, 3 Jun 2015 16:49:02 +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 84F0C61FA0; Wed, 3 Jun 2015 16:46:25 +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 E24BB61F9C; Wed, 3 Jun 2015 16:46:12 +0000 (UTC) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com [209.85.215.50]) by lists.linaro.org (Postfix) with ESMTPS id 9EB2A61D0F for ; Wed, 3 Jun 2015 16:45:11 +0000 (UTC) Received: by labpy14 with SMTP id py14so12884132lab.0 for ; Wed, 03 Jun 2015 09:45:10 -0700 (PDT) X-Received: by 10.152.203.233 with SMTP id kt9mr32976371lac.21.1433349910580; Wed, 03 Jun 2015 09:45:10 -0700 (PDT) Received: from erachmi-VirtualBox.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by mx.google.com with ESMTPSA id yq5sm5950159lab.32.2015.06.03.09.45.08 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Jun 2015 09:45:09 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Wed, 3 Jun 2015 18:44:47 +0200 Message-Id: <1433349890-2903-5-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433349890-2903-1-git-send-email-christophe.milard@linaro.org> References: <1433349890-2903-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2 4/7] validation: cosmetic fixes in odp_pktio.c 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: christophe.milard@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.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 Preparing for the next patch where this file is moved and check-odp would yell if these things were still there. Signed-off-by: Christophe Milard --- test/validation/odp_pktio.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/test/validation/odp_pktio.c b/test/validation/odp_pktio.c index 3ac5df9..ba75cd4 100644 --- a/test/validation/odp_pktio.c +++ b/test/validation/odp_pktio.c @@ -14,7 +14,7 @@ #include #define PKT_BUF_NUM 32 -#define PKT_BUF_SIZE (9*1024) +#define PKT_BUF_SIZE (9 * 1024) #define PKT_LEN_NORMAL 64 #define PKT_LEN_JUMBO (PKT_BUF_SIZE - ODPH_ETHHDR_LEN - \ ODPH_IPV4HDR_LEN - ODPH_UDPHDR_LEN) @@ -214,7 +214,7 @@ static int default_pool_create(void) params.type = ODP_POOL_PACKET; default_pkt_pool = odp_pool_create("pkt_pool_default", - ODP_SHM_NULL, ¶ms); + ODP_SHM_NULL, ¶ms); if (default_pkt_pool == ODP_POOL_INVALID) return -1; @@ -249,7 +249,8 @@ static int create_inq(odp_pktio_t pktio, odp_queue_type_t qtype) odp_pktio_to_u64(pktio)); inq_def = odp_queue_lookup(inq_name); if (inq_def == ODP_QUEUE_INVALID) - inq_def = odp_queue_create(inq_name, + inq_def = odp_queue_create( + inq_name, ODP_QUEUE_TYPE_PKTIN, qtype == ODP_QUEUE_TYPE_POLL ? NULL : &qparam); @@ -480,8 +481,6 @@ static void pktio_test_mtu(void) ret = odp_pktio_close(pktio); CU_ASSERT(ret == 0); - - return; } static void pktio_test_promisc(void) @@ -505,8 +504,6 @@ static void pktio_test_promisc(void) ret = odp_pktio_close(pktio); CU_ASSERT(ret == 0); - - return; } static void pktio_test_mac(void) @@ -531,8 +528,6 @@ static void pktio_test_mac(void) ret = odp_pktio_close(pktio); CU_ASSERT(0 == ret); - - return; } static void pktio_test_inq_remdef(void)