summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Marchand <david.marchand@redhat.com>2021-10-24 12:04:11 +0200
committerDavid Marchand <david.marchand@redhat.com>2021-10-25 09:33:15 +0200
commite0d3a74d926466051127bf87657a3ae662cfc43b (patch)
tree38b3e7e10c724aefa50b99f4f4bd4d34326bdf3c
parentdaa02b5cddbb8e11b31d41e2bf7bb1ae64dcae2f (diff)
net: fix build with pedantic for L2TPv2 definitions
Build is broken on RHEL7 following introduction of this new protocol. Fixes: 3a929df1f286 ("ethdev: support L2TPv2 and PPP procotol") Signed-off-by: David Marchand <david.marchand@redhat.com> Tested-by: Raslan Darawsheh <rasland@nvidia.com>
-rw-r--r--lib/net/rte_l2tpv2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/net/rte_l2tpv2.h b/lib/net/rte_l2tpv2.h
index 4634964820..670fe5470e 100644
--- a/lib/net/rte_l2tpv2.h
+++ b/lib/net/rte_l2tpv2.h
@@ -86,6 +86,7 @@ struct rte_l2tpv2_common_hdr {
union {
/** header flags and protocol version */
rte_be16_t flags_version;
+ __extension__
struct {
#if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN
rte_be16_t t:1; /**< message Type */