summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_flow.c
diff options
context:
space:
mode:
authorDekel Peled <dekelp@mellanox.com>2018-11-15 17:17:14 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2018-11-16 10:45:37 +0100
commitc5e508f0c3f2c1a4cc943f588235dd7be0ab6dba (patch)
tree8f941bf4e320c83432ee3b8cacfdf7a346ae5614 /drivers/net/mlx5/mlx5_flow.c
parent38f7efaaf5ac7894bfd852b812e6ba3258ceffb4 (diff)
downloaddpdk-next-eventdev-c5e508f0c3f2c1a4cc943f588235dd7be0ab6dba.zip
dpdk-next-eventdev-c5e508f0c3f2c1a4cc943f588235dd7be0ab6dba.tar.gz
dpdk-next-eventdev-c5e508f0c3f2c1a4cc943f588235dd7be0ab6dba.tar.xz
net/mlx5: fix packet type for MPLS in UDP
Change the relevant value in tunnels_info[] to match tunnel type. Fixes: a4a5cd21d20a ("net/mlx5: add flow MPLS item") Cc: stable@dpdk.org Signed-off-by: Dekel Peled <dekelp@mellanox.com> Acked-by: Shahaf Shuler <shahafs@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_flow.c')
-rw-r--r--drivers/net/mlx5/mlx5_flow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
index c8fad5f..97dc3e1 100644
--- a/drivers/net/mlx5/mlx5_flow.c
+++ b/drivers/net/mlx5/mlx5_flow.c
@@ -294,7 +294,7 @@ static struct mlx5_flow_tunnel_info tunnels_info[] = {
},
{
.tunnel = MLX5_FLOW_LAYER_MPLS | MLX5_FLOW_LAYER_OUTER_L4_UDP,
- .ptype = RTE_PTYPE_TUNNEL_MPLS_IN_GRE | RTE_PTYPE_L4_UDP,
+ .ptype = RTE_PTYPE_TUNNEL_MPLS_IN_UDP | RTE_PTYPE_L4_UDP,
},
{
.tunnel = MLX5_FLOW_LAYER_MPLS,