From patchwork Tue Jun 9 11:44:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 49645 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7CF4821419 for ; Tue, 9 Jun 2015 11:45:32 +0000 (UTC) Received: by lagh7 with SMTP id h7sf4046992lag.2 for ; Tue, 09 Jun 2015 04:45:31 -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=Gw97MMK5J5BayK6twnxOP60kbO5I+WrZEl5TRon9T6w=; b=fGP06lwmcOPmf/zwuDwPo3FTVVi8UyKwTgV+cMGVhGkpjJ5BM9B8VT/R6ghdAhFncv mYpbZD9D7ixSq+1Ol6gYAQlnUuOH+CAG5LJH0cXBMrAiqzrtt75K905Ui6fNDWLN+rdR DXl6azxNs04bSLMCUQuXsl/QFdUPcNC8wuxdjJpV1yY2bqcmBV3CnjExFEU+R4ZZbZyK 0ye4S8JEI52Y6hj8Kl38rmA6mNB4DxiXRpRNML8aNoK/SsRgdB6FqwkMnXKNhT53xoTA vaRt/QdOEFlBqiKaFclsvYbHsNUi0QMFTWfh0T5/Q6QKZuDj+3vRHHdEjaQM4oxnNe83 +eaA== X-Gm-Message-State: ALoCoQl5ys572C88vwbsW0dtc83VX8mN9FYQEAYRhT2UOsjy43t1RvRwjspslJWPTl1lHrUNRQeO X-Received: by 10.180.216.12 with SMTP id om12mr16907440wic.1.1433850331496; Tue, 09 Jun 2015 04:45:31 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.116.7 with SMTP id js7ls56694lab.34.gmail; Tue, 09 Jun 2015 04:45:31 -0700 (PDT) X-Received: by 10.152.42.230 with SMTP id r6mr21685396lal.30.1433850331341; Tue, 09 Jun 2015 04:45:31 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id da3si5500752lac.178.2015.06.09.04.45.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jun 2015 04:45:31 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by laar3 with SMTP id r3so10085533laa.3 for ; Tue, 09 Jun 2015 04:45:31 -0700 (PDT) X-Received: by 10.112.219.70 with SMTP id pm6mr16861256lbc.41.1433850331217; Tue, 09 Jun 2015 04:45:31 -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 hn6csp2546035lbb; Tue, 9 Jun 2015 04:45:30 -0700 (PDT) X-Received: by 10.55.16.33 with SMTP id a33mr41871754qkh.51.1433850329706; Tue, 09 Jun 2015 04:45:29 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o90si5080710qgd.117.2015.06.09.04.45.28; Tue, 09 Jun 2015 04:45:29 -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 73ABC61E8C; Tue, 9 Jun 2015 11:45:28 +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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED, 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 EEA9661B26; Tue, 9 Jun 2015 11:45: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 764B461828; Tue, 9 Jun 2015 11:45:21 +0000 (UTC) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by lists.linaro.org (Postfix) with ESMTPS id 63F3461D9E for ; Tue, 9 Jun 2015 11:44:53 +0000 (UTC) Received: by laar3 with SMTP id r3so10073925laa.3 for ; Tue, 09 Jun 2015 04:44:52 -0700 (PDT) X-Received: by 10.152.42.200 with SMTP id q8mr21129764lal.53.1433850292392; Tue, 09 Jun 2015 04:44:52 -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 bm5sm44272lbc.45.2015.06.09.04.44.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Jun 2015 04:44:51 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Tue, 9 Jun 2015 13:44:17 +0200 Message-Id: <1433850261-1302-5-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433850261-1302-1-git-send-email-christophe.milard@linaro.org> References: <1433850261-1302-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv4 4/8] 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.49 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 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)