net/cxgbe: remove use of uint type
authorNatanael Copa <ncopa@alpinelinux.org>
Thu, 5 Nov 2020 21:17:10 +0000 (22:17 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 23 Mar 2021 07:41:05 +0000 (08:41 +0100)
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

index 202a2f4..ab100d7 100644 (file)
@@ -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;
 };