From: NĂ©lio Laranjeiro Date: Tue, 24 Oct 2017 15:18:18 +0000 (+0200) Subject: net/mlx5: fix flow director flow add X-Git-Tag: spdx-start~1118 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=db303de11eedfaeb7d27a611cdcb3b8e8b633d93;p=dpdk.git net/mlx5: fix flow director flow add Flows are added by priv_flow_create() in the associated list, adding them a second time corrupts the list causing an infinite loop when parsing it. Fixes: 4c3e9bcdd52e ("net/mlx5: support flow director") Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 13b78ce9bb..26cf593af1 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -2792,7 +2792,6 @@ priv_fdir_filter_add(struct priv *priv, attributes.actions, &error); if (flow) { - TAILQ_INSERT_TAIL(&priv->flows, flow, next); DEBUG("FDIR created %p", (void *)flow); return 0; }