net/mlx5: fix flow director filter removal
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Tue, 31 Oct 2017 15:51:13 +0000 (16:51 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 1 Nov 2017 21:17:44 +0000 (22:17 +0100)
Initialise struct mlx5_fdir to avoid passing non initialised
items/actions arrays elements to the generic flow interpreter.

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 c281e40..040f7fd 100644 (file)
@@ -2847,7 +2847,9 @@ static int
 priv_fdir_filter_delete(struct priv *priv,
                        const struct rte_eth_fdir_filter *fdir_filter)
 {
-       struct mlx5_fdir attributes;
+       struct mlx5_fdir attributes = {
+               .attr.group = 0,
+       };
        struct mlx5_flow_parse parser = {
                .create = 1,
                .layer = HASH_RXQ_ETH,