* [dpdk-dev] [PATCH] net/mlx5: fix configuring device parser for VxLAN GPE
@ 2019-01-18 8:56 Yongseok Koh
0 siblings, 0 replies; only message in thread
From: Yongseok Koh @ 2019-01-18 8:56 UTC (permalink / raw)
To: shahafs; +Cc: dev, xuemingl, stable
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(-)
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:
--
2.11.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-01-18 8:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-18 8:56 [dpdk-dev] [PATCH] net/mlx5: fix configuring device parser for VxLAN GPE Yongseok Koh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).