summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_rxtx.h
diff options
context:
space:
mode:
authorDekel Peled <dekelp@mellanox.com>2019-07-22 18:36:50 +0300
committerFerruh Yigit <ferruh.yigit@intel.com>2019-07-23 14:31:36 +0200
commitea81c1b816f7ef7e072ee4d3155d4dcdd2aba32a (patch)
tree4608866a488b6b1405189271318f6f3987ac3522 /drivers/net/mlx5/mlx5_rxtx.h
parentee39fe82ea1867421d5e151167def4cf914e7e0a (diff)
downloaddpdk-ea81c1b816f7ef7e072ee4d3155d4dcdd2aba32a.zip
dpdk-ea81c1b816f7ef7e072ee4d3155d4dcdd2aba32a.tar.gz
dpdk-ea81c1b816f7ef7e072ee4d3155d4dcdd2aba32a.tar.xz
net/mlx5: fix NVGRE matching
NVGRE has a GRE header with c_rsvd0_ver value 0x2000 and protocol value 0x6558. These should be matched when item_nvgre is provided. This patch adds validation function of NVGRE item. It also updates the translate function of NVGRE item, to add the required values, if they were not specified. Original work by Xiaoyu Min <jackmin@mellanox.com> Fixes: fc2c498ccb94 ("net/mlx5: add Direct Verbs translate items") Cc: stable@dpdk.org Signed-off-by: Dekel Peled <dekelp@mellanox.com> Acked-by: Xiaoyu Min <jackmin@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_rxtx.h')
-rw-r--r--drivers/net/mlx5/mlx5_rxtx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_rxtx.h b/drivers/net/mlx5/mlx5_rxtx.h
index 4252832..928d6c3 100644
--- a/drivers/net/mlx5/mlx5_rxtx.h
+++ b/drivers/net/mlx5/mlx5_rxtx.h
@@ -40,7 +40,7 @@
#include "mlx5_glue.h"
/* Support tunnel matching. */
-#define MLX5_FLOW_TUNNEL 5
+#define MLX5_FLOW_TUNNEL 6
struct mlx5_rxq_stats {
#ifdef MLX5_PMD_SOFT_COUNTERS