Skip to contentSkip to conversation

net: fix pedantic build for L2TPv2 definitions

PATCH In review David Marchand 2 participants 3 messages Oct 24, 2021 – Oct 25, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: fix pedantic build for L2TPv2 definitions

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

Fixes 3a929df1f286 ("ethdev: support L2TPv2 and PPP procotol")
---
 lib/net/rte_l2tpv2.h | 1 +
 1 file changed, 1 insertion(+)
lib/net/rte_l2tpv2.h +1 -0
index 4634964820..670fe5470e 100644
@@ -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 */
Signature · 1 line
2.23.0
Tested-by on v1 1/1
#1 lore raw

Hi,

Quoted 10 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of David Marchand
Sent: Sunday, October 24, 2021 2:46 PM
To: [email protected]
Cc: Olivier Matz <[email protected]>; Ferruh Yigit <[email protected]>; Ori Kam <[email protected]>; Jie Wang <[email protected]>; Wenjun Wu <[email protected]>; Andrew Rybchenko <[email protected]>
Subject: [dpdk-dev] [PATCH] net: fix pedantic build for L2TPv2 definitions

Quoted 5 lines

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

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

Kindest regards
Raslan Darawsheh