net: fix build with pedantic for L2TPv2 definitions

Build is broken on RHEL7 following introduction of this new protocol.

Fixes: 3a929df1f2 ("ethdev: support L2TPv2 and PPP procotol")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Tested-by: Raslan Darawsheh <rasland@nvidia.com>
This commit is contained in:
David Marchand 2021-10-24 12:04:11 +02:00
parent daa02b5cdd
commit e0d3a74d92

View File

@ -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 */