net/i40e: fix simple Tx prepare rejecting tunnel type flags
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
--- drivers/net/intel/i40e/i40e_rxtx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/intel/i40e/i40e_rxtx.c +2 -1
@@ -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
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_MASKto 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")Signed-off-by Ciara Loftus <[email protected]>--- drivers/net/intel/i40e/i40e_rxtx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Applied to dpdk-next-net-intel.
Thanks,
/Bruce