From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <stable-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 5048DA0562
	for <public@inbox.dpdk.org>; Fri, 19 Mar 2021 15:58:10 +0100 (CET)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 7F998140F8C;
	Fri, 19 Mar 2021 15:58:05 +0100 (CET)
Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com
 [64.147.123.21])
 by mails.dpdk.org (Postfix) with ESMTP id E5723140F75;
 Fri, 19 Mar 2021 15:58:03 +0100 (CET)
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.west.internal (Postfix) with ESMTP id 92B07B3B;
 Fri, 19 Mar 2021 10:58:02 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute4.internal (MEProxy); Fri, 19 Mar 2021 10:58:03 -0400
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-type:content-transfer-encoding; s=fm3; bh=
 d7WYskPaE1w4D1md/Bw7WPruyMrF6ASB1ETPcABQbaI=; b=lWcJAOfRzybLWpK3
 kApn7KSnpg5e4XX0nu0240yK++nVUuvDkFNUb8hWr4qYxcrOwa5hf8QdAws4u+Oc
 ng1GuoUeC9ECfj7rbKzj8g15Fm3+4x4Li7LX2dOu9alILXNg/qJ1Kz6BzmU1CcF9
 bArUmbZilMmT87AxYvELYUfX1Oi8gcOPO8FCWlP7C+d91c3YyXBqsCKBnuUIOqSB
 ImkzrfhE0wy3ij25h3RAP6715xaCcS4ujSXI/417uPda6zu2kT0dneM/mrtEGD9n
 +l5evWeA9C44Hwal3QEzNzuP3Ov9eFXwawg1CS2dTAFVHfbeZ28W7PhMzoGVzAJ+
 h9puYg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :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=d7WYskPaE1w4D1md/Bw7WPruyMrF6ASB1ETPcABQb
 aI=; b=TTtG9G41uDaajtejDweYbcGrQCPCfhCmoT6M8uruXPxKbtG0hbBZ9SPnM
 wGk60jygdJsH0wWYiEWY4yjGKahbXi7F0nNSjxl0gA6jyjiSGI3fnoEbNxm4e8Ox
 9x6O26jut5L4EzCUAA8p6lABgKUE+uEKZ10o/o1n/ewvCu6gmCV28Tp8RQIdLKdi
 Zm4RNGl4z9n9wAV+mE083hKkhaQPVJ8eNW/AGzObuThe7gFXOGqfdupNKghHK9l+
 H6imgjrn2sh9A0B9TLkyC+vyDTXpgH1xbvByub7Fxr0vVfvSe5+s1xMQy5TlJAd/
 ROMPV79iSVuHV5fu7rII3L8zKSh9w==
X-ME-Sender: <xms:-btUYHKe1CyO0YydOAYt9u_PS0qC8qwAZjuG4KbEeL2o2EsH4e7HfQ>
 <xme:-btUYEyVjuVsCTiW1TdWaAVn5lG5zjBeSgHQ3tF-4-vezwTbXM3p9UdrIftKqptAL
 GjOCv7a6DkLwt5WlA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudefkedgjedvucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhephffvufffkffojghfgggtgfesthekredtredtjeenucfhrhhomhepvfhhohhm
 rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc
 ggtffrrghtthgvrhhnpeevuddtveeuveejkeevheehveffueegjedukeffledtleekieef
 geduhedvgeejhfenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrh
 fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgr
 lhhonhdrnhgvth
X-ME-Proxy: <xmx:-btUYPvQuRMnU93s3X4BSuDe0TNZVibAmpx2i09HYuf6NhV8rjGrow>
 <xmx:-btUYDuFwd1Axxmw2m_DNQpMfeTBHZmxUosF4aFMWe-ehViXacVI1Q>
 <xmx:-btUYMM_Ry4pnlmv-M_j_9e46VoVhXzD8b9bPT6LpX9OHxkGhCII0w>
 <xmx:-rtUYPVOexGE8DH5qXDFGBVD2Un0jMUhgA9-CGqwKwQVAFgXV_jkdA>
Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])
 by mail.messagingengine.com (Postfix) with ESMTPA id A448A24005A;
 Fri, 19 Mar 2021 10:58:00 -0400 (EDT)
From: Thomas Monjalon <thomas@monjalon.net>
To: dev@dpdk.org
Cc: ncopa@alpinelinux.org, stable@dpdk.org,
 =?UTF-8?q?Morten=20Br=C3=B8rup?= <mb@smartsharesystems.com>,
 Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>,
 David Marchand <david.marchand@redhat.com>,
 Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>,
 Kumar Sanghvi <kumaras@chelsio.com>
Date: Fri, 19 Mar 2021 15:57:25 +0100
Message-Id: <20210319145730.3555384-13-thomas@monjalon.net>
X-Mailer: git-send-email 2.30.1
In-Reply-To: <20210319145730.3555384-1-thomas@monjalon.net>
References: <20190313170657.16688-1-ncopa@alpinelinux.org>
 <20210319145730.3555384-1-thomas@monjalon.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Subject: [dpdk-stable] [PATCH v7 12/17] net/cxgbe: remove use of uint type
X-BeenThere: stable@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: patches for DPDK stable branches <stable.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/stable>,
 <mailto:stable-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/stable/>
List-Post: <mailto:stable@dpdk.org>
List-Help: <mailto:stable-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/stable>,
 <mailto:stable-request@dpdk.org?subject=subscribe>
Errors-To: stable-bounces@dpdk.org
Sender: "stable" <stable-bounces@dpdk.org>

From: Natanael Copa <ncopa@alpinelinux.org>

Improve portability by replacing non-standard 'uint' with 'unsigned int'.

This solves the build error with musl libc:

In file included from ../drivers/net/cxgbe/cxgbe.h:9,
                 from ../drivers/net/cxgbe/cxgbe_ethdev.c:37:
../drivers/net/cxgbe/base/common.h:201:4: error: unknown type name 'uint'
  201 |    uint synmapen:1; /* SYN Map Enable */
      |    ^~~~

Fixes: bfcb257d3014 ("net/cxgbe: enable RSS for VF")
Cc: stable@dpdk.org

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Reviewed-by: Morten Brørup <mb@smartsharesystems.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: David Marchand <david.marchand@redhat.com>
---
 drivers/net/cxgbe/base/common.h | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/net/cxgbe/base/common.h b/drivers/net/cxgbe/base/common.h
index 202a2f4baf..ab100d784c 100644
--- a/drivers/net/cxgbe/base/common.h
+++ b/drivers/net/cxgbe/base/common.h
@@ -189,15 +189,15 @@ struct rss_params {
 	unsigned int mode;			/* RSS mode */
 	union {
 		struct {
-			uint synmapen:1;	/* SYN Map Enable */
-			uint syn4tupenipv6:1;	/* en 4-tuple IPv6 SYNs hash */
-			uint syn2tupenipv6:1;	/* en 2-tuple IPv6 SYNs hash */
-			uint syn4tupenipv4:1;	/* en 4-tuple IPv4 SYNs hash */
-			uint syn2tupenipv4:1;	/* en 2-tuple IPv4 SYNs hash */
-			uint ofdmapen:1;	/* Offload Map Enable */
-			uint tnlmapen:1;	/* Tunnel Map Enable */
-			uint tnlalllookup:1;	/* Tunnel All Lookup */
-			uint hashtoeplitz:1;	/* use Toeplitz hash */
+			unsigned int synmapen:1;      /* SYN Map Enable */
+			unsigned int syn4tupenipv6:1; /* en 4-tuple IPv6 SYNs hash */
+			unsigned int syn2tupenipv6:1; /* en 2-tuple IPv6 SYNs hash */
+			unsigned int syn4tupenipv4:1; /* en 4-tuple IPv4 SYNs hash */
+			unsigned int syn2tupenipv4:1; /* en 2-tuple IPv4 SYNs hash */
+			unsigned int ofdmapen:1;      /* Offload Map Enable */
+			unsigned int tnlmapen:1;      /* Tunnel Map Enable */
+			unsigned int tnlalllookup:1;  /* Tunnel All Lookup */
+			unsigned int hashtoeplitz:1;  /* use Toeplitz hash */
 		} basicvirtual;
 	} u;
 };
-- 
2.30.1