From patchwork Wed Jun 10 16:54:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 49717 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 21C17245D4 for ; Wed, 10 Jun 2015 16:57:37 +0000 (UTC) Received: by wgv5 with SMTP id 5sf13434185wgv.0 for ; Wed, 10 Jun 2015 09:57:36 -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=gm5d8eHalUxPzsO8jE10HAcHYkzLP/5a99o8WcsM1S4=; b=eshDtJ8TGs/1I9zHX9CynqZ0wfjnseh8X0PZGKf8RNkjxv60ryQz/9/DJc83vldu+n lPkiso9KeHb7peeirbsuDtPmKk/a1/4ujb6b3DOwS+nT/aw+V0QTNBY4PqYS6jUixa4v 8XalMfRwJdguhPFFo8rfjpQdO1dN50Lmt04PIDMnBfj4b3e0fr+0/CZ4mi2PBPKJEUGW GaUe7vIvBZTiZyjzIwRaDviTZJGps4sCJREYsZS9IgfZaore96klFSABpOJ6nPTdvNDK y4IpbUlZalBNuTn0D2tcUGDeXWob9Ezg/HoNdH8fBehsbesx+Ejb+s5eK02aBRzEwQdX kZzA== X-Gm-Message-State: ALoCoQm3LYVM0Malwr9SdNH367y/sA1hZ8wiaTjObXhIBxvxVZDK0q2IFgPk0/usyBs/Md4oV43q X-Received: by 10.112.159.41 with SMTP id wz9mr3764943lbb.17.1433955456421; Wed, 10 Jun 2015 09:57:36 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.18.199 with SMTP id y7ls64245lad.47.gmail; Wed, 10 Jun 2015 09:57:36 -0700 (PDT) X-Received: by 10.152.121.42 with SMTP id lh10mr5270563lab.0.1433955456199; Wed, 10 Jun 2015 09:57:36 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id qb5si9537535lbb.28.2015.06.10.09.57.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jun 2015 09:57:36 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbcmx3 with SMTP id mx3so32532838lbc.1 for ; Wed, 10 Jun 2015 09:57:36 -0700 (PDT) X-Received: by 10.112.93.37 with SMTP id cr5mr5207567lbb.106.1433955456061; Wed, 10 Jun 2015 09:57:36 -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 hn6csp3461747lbb; Wed, 10 Jun 2015 09:57:33 -0700 (PDT) X-Received: by 10.140.233.140 with SMTP id e134mr5630983qhc.63.1433955451670; Wed, 10 Jun 2015 09:57:31 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id b30si9245503qga.95.2015.06.10.09.57.30; Wed, 10 Jun 2015 09:57:31 -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 C69C461F70; Wed, 10 Jun 2015 16:57:30 +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 7D99D61F6C; Wed, 10 Jun 2015 16:55:39 +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 B07D461B59; Wed, 10 Jun 2015 16:55:26 +0000 (UTC) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by lists.linaro.org (Postfix) with ESMTPS id BB1C961C80 for ; Wed, 10 Jun 2015 16:54:55 +0000 (UTC) Received: by lbbtu8 with SMTP id tu8so32528868lbb.2 for ; Wed, 10 Jun 2015 09:54:54 -0700 (PDT) X-Received: by 10.152.20.40 with SMTP id k8mr5052121lae.115.1433955294669; Wed, 10 Jun 2015 09:54:54 -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 i1sm2328544lae.45.2015.06.10.09.54.53 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Jun 2015 09:54:54 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Wed, 10 Jun 2015 18:54:21 +0200 Message-Id: <1433955265-4180-5-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433955265-4180-1-git-send-email-christophe.milard@linaro.org> References: <1433955265-4180-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv5 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.217.170 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: Mike Holmes 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 e5f7507..f993169 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); @@ -481,8 +482,6 @@ static void pktio_test_mtu(void) ret = odp_pktio_close(pktio); CU_ASSERT(ret == 0); - - return; } static void pktio_test_promisc(void) @@ -506,8 +505,6 @@ static void pktio_test_promisc(void) ret = odp_pktio_close(pktio); CU_ASSERT(ret == 0); - - return; } static void pktio_test_mac(void) @@ -532,8 +529,6 @@ static void pktio_test_mac(void) ret = odp_pktio_close(pktio); CU_ASSERT(0 == ret); - - return; } static void pktio_test_inq_remdef(void)