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: [email protected]
Signed-off-by: Ciara Loftus <[email protected]>
---
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