Skip to contentSkip to conversation

net/i40e: fix simple Tx prepare rejecting tunnel type flags

PATCH Applied Ciara Loftus 2 participants 2 messages Mar 20 – Apr 3 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/i40e: fix simple Tx prepare rejecting tunnel type flags

The tunnel type bits in ol_flags (RTE_MBUF_F_TX_TUNNEL_*) identify the encapsulation protocol used by a packet. An application may set these to indicate tunnel type without requesting any tunnel offload. The simple Tx path was incorrectly treating these flags as unsupported offload requests and rejecting the packet.

Add RTE_MBUF_F_TX_TUNNEL_MASK to the set of permitted flags in the simple Tx supported offloads mask to permit tunnel flags in the mbuf.

Bugzilla ID: 1342

Fixes 146ffa81d05e ("net/i40e: add Tx preparation for simple Tx datapath")
---
 drivers/net/intel/i40e/i40e_rxtx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/intel/i40e/i40e_rxtx.c +2 -1
index c5ac75e0f0..a2b351e932 100644
@@ -74,7 +74,8 @@
 #define I40E_TX_OFFLOAD_SIMPLE_SUP_MASK (RTE_MBUF_F_TX_IPV4 | \
 		RTE_MBUF_F_TX_IPV6 | \
 		RTE_MBUF_F_TX_OUTER_IPV4 | \
-		RTE_MBUF_F_TX_OUTER_IPV6)
+		RTE_MBUF_F_TX_OUTER_IPV6 | \
+		RTE_MBUF_F_TX_TUNNEL_MASK)
 
 #define I40E_TX_OFFLOAD_SIMPLE_NOTSUP_MASK \
 		(RTE_MBUF_F_TX_OFFLOAD_MASK ^ I40E_TX_OFFLOAD_SIMPLE_SUP_MASK)
Signature · 1 line
2.43.0
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 9 lines · Ciara Loftus

The tunnel type bits in ol_flags (RTE_MBUF_F_TX_TUNNEL_*) identify the encapsulation protocol used by a packet. An application may set these to indicate tunnel type without requesting any tunnel offload. The simple Tx path was incorrectly treating these flags as unsupported offload requests and rejecting the packet.

Add RTE_MBUF_F_TX_TUNNEL_MASK to the set of permitted flags in the simple Tx supported offloads mask to permit tunnel flags in the mbuf.

Quoted 9 lines

Bugzilla ID: 1342

Fixes 146ffa81d05e ("net/i40e: add Tx preparation for simple Tx datapath")
---
 drivers/net/intel/i40e/i40e_rxtx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied to dpdk-next-net-intel.

Thanks,
/Bruce