From patchwork Thu May 28 10:58:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 49051 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F3373218EC for ; Thu, 28 May 2015 10:59:55 +0000 (UTC) Received: by wifq9 with SMTP id q9sf12719336wif.3 for ; Thu, 28 May 2015 03:59:55 -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=Y8TzWVQyyuemcvVg3eg8lluPLlWsbRiz8dWXbcLQYMg=; b=FIo0kFlgR940jiMc106vnIcBD6IxBupwqV9ta0xoOYfKqklANIT6NoI6F4r4qzlKhL 9+Vw5YP6H3t5BQARGVkJNzVSq2a8bsLMz8fqnclz60eKfZFvKiUX646bBnt6orQs2vMG fqivX0E9KQh35tn+EgkskPuCjXNcPxNPrKIqVHHNFgTsyoV+2eWqSdsyWJTKz5cFWjc3 bvBnyDLxpZ3U+5iSSDv0XNoMu3cJrsxIgXJ6Ys/j4sK0ZoMQeSAI5SKZck/iioOlWcyj eRLBApJ2CwTj0DLnkavOmnz9wFTqZqlQ3dOWctDdPLQ1w3i/aXZg8L8cLVF03oYMSlq9 p/5g== X-Gm-Message-State: ALoCoQk/0yVV4zjjHLTEIeFyYWgMxr+Rnx50A9roiBViP9w5SyTIxvs3NqDS6s2ruJD/O7TZO7uY X-Received: by 10.112.13.200 with SMTP id j8mr2166399lbc.14.1432810795284; Thu, 28 May 2015 03:59:55 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.72 with SMTP id h8ls176132laa.71.gmail; Thu, 28 May 2015 03:59:55 -0700 (PDT) X-Received: by 10.112.25.10 with SMTP id y10mr2125387lbf.61.1432810795064; Thu, 28 May 2015 03:59:55 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id a8si1652922lbs.52.2015.05.28.03.59.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 May 2015 03:59:54 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbbqq2 with SMTP id qq2so25525149lbb.3 for ; Thu, 28 May 2015 03:59:54 -0700 (PDT) X-Received: by 10.152.29.34 with SMTP id g2mr2130558lah.73.1432810794777; Thu, 28 May 2015 03:59:54 -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 hn6csp1058815lbb; Thu, 28 May 2015 03:59:53 -0700 (PDT) X-Received: by 10.140.108.6 with SMTP id i6mr2248626qgf.73.1432810793439; Thu, 28 May 2015 03:59:53 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a96si2014023qkh.14.2015.05.28.03.59.51; Thu, 28 May 2015 03:59:53 -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 57D0561E95; Thu, 28 May 2015 10:59:51 +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_H2, 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 999DD61D9E; Thu, 28 May 2015 10:59:06 +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 BB3AD61E89; Thu, 28 May 2015 10:59:03 +0000 (UTC) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by lists.linaro.org (Postfix) with ESMTPS id A276161E75 for ; Thu, 28 May 2015 10:58:31 +0000 (UTC) Received: by lbcue7 with SMTP id ue7so25588319lbc.0 for ; Thu, 28 May 2015 03:58:30 -0700 (PDT) X-Received: by 10.112.118.49 with SMTP id kj17mr2167317lbb.62.1432810710600; Thu, 28 May 2015 03:58:30 -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 j10sm440024lbs.21.2015.05.28.03.58.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 May 2015 03:58:29 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Thu, 28 May 2015 12:58:09 +0200 Message-Id: <1432810692-25231-4-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432810692-25231-1-git-send-email-christophe.milard@linaro.org> References: <1432810692-25231-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 3/6] 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.217.171 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 Reviewed-by: Stuart Haslam --- 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 9806376..156285a 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) @@ -212,7 +212,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; @@ -265,7 +265,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); @@ -496,8 +497,6 @@ static void pktio_test_mtu(void) ret = odp_pktio_close(pktio); CU_ASSERT(ret == 0); - - return; } static void pktio_test_promisc(void) @@ -521,8 +520,6 @@ static void pktio_test_promisc(void) ret = odp_pktio_close(pktio); CU_ASSERT(ret == 0); - - return; } static void pktio_test_mac(void) @@ -547,8 +544,6 @@ static void pktio_test_mac(void) ret = odp_pktio_close(pktio); CU_ASSERT(0 == ret); - - return; } static void pktio_test_inq_remdef(void)