public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
* [PATCH] net/i40e: fix simple Tx prepare rejecting tunnel type flags
@ 2026-03-20 11:14 Ciara Loftus
  2026-04-03 13:36 ` Bruce Richardson
  0 siblings, 1 reply; 2+ messages in thread
From: Ciara Loftus @ 2026-03-20 11:14 UTC (permalink / raw)
  To: dev; +Cc: Ciara Loftus, stable

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")
Cc: stable@dpdk.org

Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
---
 drivers/net/intel/i40e/i40e_rxtx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/intel/i40e/i40e_rxtx.c b/drivers/net/intel/i40e/i40e_rxtx.c
index c5ac75e0f0..a2b351e932 100644
--- a/drivers/net/intel/i40e/i40e_rxtx.c
+++ b/drivers/net/intel/i40e/i40e_rxtx.c
@@ -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)
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-04-03 13:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-20 11:14 [PATCH] net/i40e: fix simple Tx prepare rejecting tunnel type flags Ciara Loftus
2026-04-03 13:36 ` Bruce Richardson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox