From patchwork Wed Feb 4 21:07:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ola Liljedahl X-Patchwork-Id: 44392 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 236A921173 for ; Wed, 4 Feb 2015 21:08:31 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id y19sf2867497wgg.2 for ; Wed, 04 Feb 2015 13:08:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references: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=9PsRn/ueQTXsmsudfg/ormQPKLNT/t8LUHqDGVYopow=; b=AeRdnBDIuarw/Ko1i2SwnkG6xAKhCoJY1QeUw7Skc46NyHVqYJcRLuBLGGaAteKUhF PHZLh3AW016LkMG3O9CAAnJ6pdzx46PJWcQgAKvblNdpGRQxBM8HmzYQQgPXAH7cZmZ1 IfaHP+I8+cJbkuFp4rcxfCIycf76zOzdR6AimVYGbOK8cNTddNTniEyy/aGBg+4JTslm 8iPb/pIBDDJS5vSuZN2ST1ibtvNJmHt++iULjJ6uUhja+xMtMvukhtM+vYOYdbCYp1Hg tA4EoPD1ePhHOi3mcaF9bAOE/smrq7nkXlwqJIyhmeDPfOtcs0ICTFnB2DpJyPnxmmHy cBvQ== X-Gm-Message-State: ALoCoQkU/+daFgSBWIlim3BRoyW+fsYVRVmQH3HKwZpknuHDhg9ef7qZeZBbdICOTPBfqEGj1z6E X-Received: by 10.112.180.167 with SMTP id dp7mr39826lbc.14.1423084110295; Wed, 04 Feb 2015 13:08:30 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.232 with SMTP id h8ls88488lam.30.gmail; Wed, 04 Feb 2015 13:08:30 -0800 (PST) X-Received: by 10.152.22.129 with SMTP id d1mr394879laf.22.1423084110133; Wed, 04 Feb 2015 13:08:30 -0800 (PST) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id jc7si2414394lbc.80.2015.02.04.13.08.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Feb 2015 13:08:30 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by mail-la0-f47.google.com with SMTP id hz20so3912078lab.6 for ; Wed, 04 Feb 2015 13:08:30 -0800 (PST) X-Received: by 10.152.20.4 with SMTP id j4mr279683lae.29.1423084110025; Wed, 04 Feb 2015 13:08:30 -0800 (PST) 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.35.133 with SMTP id h5csp744003lbj; Wed, 4 Feb 2015 13:08:29 -0800 (PST) X-Received: by 10.140.38.136 with SMTP id t8mr447957qgt.61.1423084108633; Wed, 04 Feb 2015 13:08:28 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id j74si3343813qge.103.2015.02.04.13.08.27 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Feb 2015 13:08:28 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YJ7BP-0006uz-LK; Wed, 04 Feb 2015 21:08:23 +0000 Received: from mail-la0-f50.google.com ([209.85.215.50]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YJ7At-0006or-0c for lng-odp@lists.linaro.org; Wed, 04 Feb 2015 21:07:51 +0000 Received: by mail-la0-f50.google.com with SMTP id hs14so3914193lab.9 for ; Wed, 04 Feb 2015 13:07:45 -0800 (PST) X-Received: by 10.112.148.34 with SMTP id tp2mr297120lbb.94.1423084065449; Wed, 04 Feb 2015 13:07:45 -0800 (PST) Received: from macmini.lan (78-82-118-111.tn.glocalnet.net. [78.82.118.111]) by mx.google.com with ESMTPSA id r7sm567954lbs.37.2015.02.04.13.07.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Feb 2015 13:07:44 -0800 (PST) From: Ola Liljedahl To: lng-odp@lists.linaro.org Date: Wed, 4 Feb 2015 22:07:30 +0100 Message-Id: <1423084051-12962-9-git-send-email-ola.liljedahl@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423084051-12962-1-git-send-email-ola.liljedahl@linaro.org> References: <1423084051-12962-1-git-send-email-ola.liljedahl@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv6 8/9] api: odp_packet_io.h: use int for size of pkt_tables X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ola.liljedahl@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.47 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 odp_pktio_recv() and odp_pktio_send() use int for 'len' parameter to match return type. Signed-off-by: Ola Liljedahl --- (This document/code contribution attached is provided under the terms of agreement LES-LTM-21309) include/odp/api/packet_io.h | 4 ++-- platform/linux-generic/odp_packet_io.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/odp/api/packet_io.h b/include/odp/api/packet_io.h index 36be5b1..0151d86 100644 --- a/include/odp/api/packet_io.h +++ b/include/odp/api/packet_io.h @@ -96,7 +96,7 @@ odp_pktio_t odp_pktio_lookup(const char *dev); * @return Number of packets received * @retval <0 on failure */ -int odp_pktio_recv(odp_pktio_t id, odp_packet_t pkt_table[], unsigned len); +int odp_pktio_recv(odp_pktio_t id, odp_packet_t pkt_table[], int len); /** * Send packets @@ -108,7 +108,7 @@ int odp_pktio_recv(odp_pktio_t id, odp_packet_t pkt_table[], unsigned len); * @return Number of packets sent * @retval <0 on failure */ -int odp_pktio_send(odp_pktio_t id, odp_packet_t pkt_table[], unsigned len); +int odp_pktio_send(odp_pktio_t id, odp_packet_t pkt_table[], int len); /** * Set the default input queue to be associated with a pktio handle diff --git a/platform/linux-generic/odp_packet_io.c b/platform/linux-generic/odp_packet_io.c index b3bdd1c..9a3bf71 100644 --- a/platform/linux-generic/odp_packet_io.c +++ b/platform/linux-generic/odp_packet_io.c @@ -359,7 +359,7 @@ static int deq_loopback(pktio_entry_t *pktio_entry, odp_packet_t pkts[], return nbr; } -int odp_pktio_recv(odp_pktio_t id, odp_packet_t pkt_table[], unsigned len) +int odp_pktio_recv(odp_pktio_t id, odp_packet_t pkt_table[], int len) { pktio_entry_t *pktio_entry = get_pktio_entry(id); int pkts; @@ -414,7 +414,7 @@ static int enq_loopback(pktio_entry_t *pktio_entry, odp_packet_t pkt_tbl[], return queue_enq_multi(qentry, hdr_tbl, len); } -int odp_pktio_send(odp_pktio_t id, odp_packet_t pkt_table[], unsigned len) +int odp_pktio_send(odp_pktio_t id, odp_packet_t pkt_table[], int len) { pktio_entry_t *pktio_entry = get_pktio_entry(id); int pkts;