net/mlx5: fix configuring device parser for VxLAN GPE

Message ID 20190118085608.9019-1-yskoh@mellanox.com (mailing list archive)
State Not Applicable, archived
Delegated to: Shahaf Shuler
Headers
Series net/mlx5: fix configuring device parser for VxLAN GPE |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/mellanox-Performance-Testing success Performance Testing PASS
ci/intel-Performance-Testing success Performance Testing PASS

Commit Message

Yongseok Koh Jan. 18, 2019, 8:56 a.m. UTC
  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(-)
  

Patch

diff --git a/drivers/net/mlx5/mlx5_rxtx.h b/drivers/net/mlx5/mlx5_rxtx.h
index c2529f96bc..3af3c64af3 100644
--- a/drivers/net/mlx5/mlx5_rxtx.h
+++ b/drivers/net/mlx5/mlx5_rxtx.h
@@ -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: