net/mlx5: fix configuring device parser for VxLAN GPE
Checks
Commit Message
PKT_TX_TUNNEL_UDP is introduced to support generic UDP tunnels which is not
defined by PKT_TX_TUNNEL_*. SW parser feature of mlx5 device can be used
for generic tunnels unknown to device. Even though PKT_TX_TUNNEL_VXLAN_GPE
is defined in rte_mbuf.h, it is not a pre-defined tunnel to mlx5 device and
SW parser parameters should be set.
Fixes: 5f8ba81c4228 ("net/mlx5: support generic tunnel offloading")
Cc: xuemingl@mellanox.com
Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
---
drivers/net/mlx5/mlx5_rxtx.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -754,7 +754,8 @@ txq_mbuf_to_swp(struct mlx5_txq_data *txq, struct rte_mbuf *buf,
uint16_t off;
if (likely(!txq->swp_en || (tunnel != PKT_TX_TUNNEL_UDP &&
- tunnel != PKT_TX_TUNNEL_IP)))
+ tunnel != PKT_TX_TUNNEL_IP &&
+ tunnel != PKT_TX_TUNNEL_VXLAN_GPE)))
return;
/*
* The index should have: