]> git.droids-corp.org - dpdk.git/commitdiff
net/mlx5: add missing packet type for GENEVE
authorWisam Jaddo <wisamm@mellanox.com>
Wed, 6 Nov 2019 09:38:55 +0000 (09:38 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Nov 2019 22:15:05 +0000 (23:15 +0100)
HW ptype are missing TUNNEL_GENEVE support

Fixes: e59a5dbcfd07 ("net/mlx5: add flow match on GENEVE item")
Signed-off-by: Wisam Jaddo <wisamm@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_rxtx.h

index e90301ccde3323482e5f1a2dc522feab93832573..38b7e4b195c82f2702da027009a3105ceffcb0c3 100644 (file)
@@ -286,6 +286,10 @@ static struct mlx5_flow_tunnel_info tunnels_info[] = {
                .tunnel = MLX5_FLOW_LAYER_VXLAN,
                .ptype = RTE_PTYPE_TUNNEL_VXLAN | RTE_PTYPE_L4_UDP,
        },
+       {
+               .tunnel = MLX5_FLOW_LAYER_GENEVE,
+               .ptype = RTE_PTYPE_TUNNEL_GENEVE | RTE_PTYPE_L4_UDP,
+       },
        {
                .tunnel = MLX5_FLOW_LAYER_VXLAN_GPE,
                .ptype = RTE_PTYPE_TUNNEL_VXLAN_GPE | RTE_PTYPE_L4_UDP,
index d4ba25f9399c99c8fb3b0973d5d515dd4273edec..559d225a119be2bfbf8d2f1be631c83b2bd97676 100644 (file)
@@ -40,7 +40,7 @@
 #include "mlx5_glue.h"
 
 /* Support tunnel matching. */
-#define MLX5_FLOW_TUNNEL 8
+#define MLX5_FLOW_TUNNEL 9
 
 struct mlx5_rxq_stats {
 #ifdef MLX5_PMD_SOFT_COUNTERS