net/mlx5: fix flow director TCPv6 filter
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Tue, 31 Oct 2017 15:51:14 +0000 (16:51 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 1 Nov 2017 21:18:11 +0000 (22:18 +0100)
Flow director to generic flow conversion wrongly handles TCPv6 layer.

Fixes: 4c3e9bcdd52e ("net/mlx5: support flow director")

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_flow.c

index 040f7fd..5f49bf5 100644 (file)
@@ -2754,7 +2754,7 @@ priv_fdir_filter_convert(struct priv *priv,
                        .spec = &attributes->l3,
                };
                attributes->items[2] = (struct rte_flow_item){
-                       .type = RTE_FLOW_ITEM_TYPE_UDP,
+                       .type = RTE_FLOW_ITEM_TYPE_TCP,
                        .spec = &attributes->l4,
                };
                break;