From patchwork Thu Jun 4 18:06:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 49545 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D72BB21562 for ; Thu, 4 Jun 2015 18:09:02 +0000 (UTC) Received: by lbbti3 with SMTP id ti3sf12419031lbb.1 for ; Thu, 04 Jun 2015 11:09:01 -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=j4ESK8YpCuF9hyJbyNqjJIfk2ZJwmsRY+z8MHHefMOM=; b=jHKwzAJGigHsLDMja9pWVdRsmKjRhKrziI/XSG8R1hPRwtW9xuYktnsiRE4B3B9PVl DWBmr39gRIiu+miUG2MOH8X4MjiYtHH63Wr+qv81axUduQgrrUk16dMHSItJhWcrc3Mb 3CfX+jElnahTKcH4xTob+dzVhrMRxYjgQfmNaY8Y4RvWQyMqGdb/B3R48oJdhUwhXC1D NhaFnm2VZRhz0e8ggkO3lBxRJgn7Ifh0VvuumDpkQZUMlwDeGXOag9ULOZ5cbbmVmrA2 eFgqPWm9OhTNQhAA2HAPwlWPYeCF/6aNsyjuH0vpNqrwm92k90FXtcgwvdSTqsFEqS3t D34A== X-Gm-Message-State: ALoCoQmZ8cKerJY/suMMBNXOPJbFOxHdcDKR3H+sR9R9a4SzTfQpSJKkeZ1KToDCRIAxV4V5/E+M X-Received: by 10.194.58.164 with SMTP id s4mr20218871wjq.3.1433441341809; Thu, 04 Jun 2015 11:09:01 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.226 with SMTP id q2ls249855lae.73.gmail; Thu, 04 Jun 2015 11:09:01 -0700 (PDT) X-Received: by 10.152.21.5 with SMTP id r5mr38421846lae.24.1433441341647; Thu, 04 Jun 2015 11:09:01 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id a9si2481929laf.173.2015.06.04.11.09.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jun 2015 11:09:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by laew7 with SMTP id w7so37737141lae.1 for ; Thu, 04 Jun 2015 11:09:01 -0700 (PDT) X-Received: by 10.153.6.36 with SMTP id cr4mr39679467lad.56.1433441341550; Thu, 04 Jun 2015 11:09:01 -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 hn6csp794730lbb; Thu, 4 Jun 2015 11:09:00 -0700 (PDT) X-Received: by 10.140.144.131 with SMTP id 125mr46301096qhq.75.1433441339611; Thu, 04 Jun 2015 11:08:59 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 31si4871378qkq.77.2015.06.04.11.08.58; Thu, 04 Jun 2015 11:08:59 -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 99C5B620D6; Thu, 4 Jun 2015 18:08:58 +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 1848E62095; Thu, 4 Jun 2015 18:08:10 +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 D766B6209A; Thu, 4 Jun 2015 18:08:06 +0000 (UTC) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by lists.linaro.org (Postfix) with ESMTPS id 9D6206209B for ; Thu, 4 Jun 2015 18:07:33 +0000 (UTC) Received: by lbcmx3 with SMTP id mx3so32198327lbc.1 for ; Thu, 04 Jun 2015 11:07:32 -0700 (PDT) X-Received: by 10.152.245.138 with SMTP id xo10mr8753941lac.108.1433441252560; Thu, 04 Jun 2015 11:07:32 -0700 (PDT) Received: from localhost.localdomain (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by mx.google.com with ESMTPSA id x9sm955058lag.18.2015.06.04.11.07.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jun 2015 11:07:32 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Thu, 4 Jun 2015 20:06:56 +0200 Message-Id: <1433441220-25295-5-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1433441220-25295-1-git-send-email-christophe.milard@linaro.org> References: <1433441220-25295-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv3 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.52 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)