From 9f9c37412ab53b9bcc7b4d77a491e580bbb22385 Mon Sep 17 00:00:00 2001 From: =?utf8?q?N=C3=A9lio=20Laranjeiro?= Date: Tue, 31 Oct 2017 16:51:13 +0100 Subject: [PATCH] net/mlx5: fix flow director filter removal 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 Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index c281e40976..040f7fd4dc 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -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, -- 2.20.1