Message ID | 20210225182250.1149592-15-thomas@monjalon.net (mailing list archive) |
---|---|
State | Superseded, archived |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 50324A034F; Thu, 25 Feb 2021 19:25:08 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6D3A81608CB; Thu, 25 Feb 2021 19:24:04 +0100 (CET) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by mails.dpdk.org (Postfix) with ESMTP id 58C5A1608B8; Thu, 25 Feb 2021 19:24:03 +0100 (CET) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 01FB25C00AE; Thu, 25 Feb 2021 13:24:03 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 25 Feb 2021 13:24:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=uu8aiLROoSxfs 9RGUBtOq4CatSVqm0Yc+cuPt5IiRz0=; b=iCRTdFyrXMh2VjkPTRfmtCbw2qCg0 780go7bFJB1g5kc1Kkhq4AO9d7lGpaZMU5cSBDwQ9EpGbNTyVbUE/nBe+fEDDChE Eb8Mg579PAjxFHbhxFgT5z6lGDp3QZ+kxoSokomX2zmNebRYGXmeyObW9mSgU0ZG P0x1TwtJ2OLquaADbCnrpKT+AI68sEI1o/RiZUpzmQtXB9/gfmgcBzRUkwN/vstt YqxBUIPakZrAX/PVElxSuH69ydtR/ej809mpRuGVj7qbXCdNQcXQTC9FDk+H5S+b At+11iXkeZmflmrpBrwOsltDYxhVdB1UQD6RNSU/Zsrq/g6Oxu/KBRhmA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=uu8aiLROoSxfs9RGUBtOq4CatSVqm0Yc+cuPt5IiRz0=; b=QxL86WAL 6KeYCSOwA4I7YCg43navvITvqBxROAmnY43gSURpXF695rn1BnmLxk+BtyvkVj7g HnerLCeJ6Fp+Eto6exbJNSUmQL0Nz1YHt5hNBo6B+eDTj36CQgE4YEIVfeZYUYF+ WcjaZfCeknlTT1qUWIp/5G+c8CgepH6qG8QUpiBmYQckAVKpR3WWeogfHBZ8ug8H qPKRN3jVvq0WfBJfdgqrknyuNyzKp7JphWmUNRIVxCtGvpoGD93NNHxZD7UIyKGJ g2aMmAgy6bb+bNBCv1SgwV2m9DbCXAz/o5PMIRwhImMWryUvdMIEPmUvomclIBch yqqX15wJyJaRbA== X-ME-Sender: <xms:Qus3YLs0n-2aYsmn4sEg16OsE-i0KmjEUbl_2uI-nvM3h5o1IDwwbQ> <xme:Qus3YNLjPItSZp2q_EWfZZJL4rp0ZOKInVKd_OUaXFy61PRqTYwiHM-IXEECcE8d- nHOPCK_jDy54gqN-Q> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrkeelgdduudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepvdehgfeivdejgedtveehfefhteelfefgieevgfffveefjeegtdfg uedthedtgeevnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl ohhnrdhnvght X-ME-Proxy: <xmx:Qus3YM-A6GbcAX6rFDl1EiiYu8gwGjSw-6BNVROOeLGOWKfmSAFR8Q> <xmx:Qus3YOwx2kd9SbuEkJJr7z5fxj-56Bu2f2ZBzM0ja8fw0DCYTi_nSw> <xmx:Qus3YB6lK8LjWRx3LTb47SairxYhMRExz-yVk6XxRo_YKBWgSdueRw> <xmx:Qus3YLSuxsy4TZxoeIcEI-PoF4gf3biZiofg-eur5pXSyzMWvGQG1A> Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 955A8240066; Thu, 25 Feb 2021 13:24:01 -0500 (EST) From: Thomas Monjalon <thomas@monjalon.net> To: dev@dpdk.org Cc: ncopa@alpinelinux.org, stable@dpdk.org, David Marchand <david.marchand@redhat.com>, Jeff Guo <jia.guo@intel.com>, Haiyue Wang <haiyue.wang@intel.com>, Ferruh Yigit <ferruh.yigit@intel.com>, Alvin Zhang <alvinx.zhang@intel.com> Date: Thu, 25 Feb 2021 19:22:47 +0100 Message-Id: <20210225182250.1149592-15-thomas@monjalon.net> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210225182250.1149592-1-thomas@monjalon.net> References: <20190313170657.16688-1-ncopa@alpinelinux.org> <20210225182250.1149592-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v5 14/17] net/igc: remove use of uint type X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
Alpine/musl build support
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Thomas Monjalon
Feb. 25, 2021, 6:22 p.m. UTC
Improve portability (especially with musl libc)
by replacing the non-standard type 'uint' with 'size_t'.
Fixes: 746664d546fb ("net/igc: support flow API")
Cc: stable@dpdk.org
Suggested-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
drivers/net/igc/igc_flow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
> -----Original Message----- > From: Thomas Monjalon <thomas@monjalon.net> > Sent: Friday, February 26, 2021 02:23 > To: dev@dpdk.org > Cc: ncopa@alpinelinux.org; stable@dpdk.org; David Marchand <david.marchand@redhat.com>; Guo, Jia > <jia.guo@intel.com>; Wang, Haiyue <haiyue.wang@intel.com>; Yigit, Ferruh <ferruh.yigit@intel.com>; > Zhang, AlvinX <alvinx.zhang@intel.com> > Subject: [PATCH v5 14/17] net/igc: remove use of uint type > > Improve portability (especially with musl libc) > by replacing the non-standard type 'uint' with 'size_t'. > > Fixes: 746664d546fb ("net/igc: support flow API") > Cc: stable@dpdk.org > > Suggested-by: David Marchand <david.marchand@redhat.com> > Signed-off-by: Thomas Monjalon <thomas@monjalon.net> > --- > drivers/net/igc/igc_flow.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Acked-by: Haiyue Wang <haiyue.wang@intel.com> > 2.30.1
diff --git a/drivers/net/igc/igc_flow.c b/drivers/net/igc/igc_flow.c index 1bb64d323c..66053060af 100644 --- a/drivers/net/igc/igc_flow.c +++ b/drivers/net/igc/igc_flow.c @@ -656,7 +656,7 @@ igc_parse_action_rss(struct rte_eth_dev *dev, * Return the pointer of the flow, or NULL for failed **/ static inline struct rte_flow * -igc_alloc_flow(const void *filter, enum igc_filter_type type, uint inbytes) +igc_alloc_flow(const void *filter, enum igc_filter_type type, size_t inbytes) { /* allocate memory, 8 bytes boundary aligned */ struct rte_flow *flow = rte_malloc("igc flow filter",