Drop flows being created when the port is stop should not access to the drop table hash queues as it is invalid.
Fixes: 028761059aeb ("net/mlx5: use an RSS drop queue") Signed-off-by: Nelio Laranjeiro <nelio.laranje...@6wind.com> Acked-by: Shahaf Shuler <shah...@mellanox.com> --- drivers/net/mlx5/mlx5_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 8b3957b..96bbf42 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -1004,9 +1004,9 @@ priv_flow_create_action_queue_drop(struct priv *priv, } rte_flow->drop = 1; rte_flow->ibv_attr = flow->ibv_attr; - rte_flow->qp = priv->flow_drop_queue->qp; if (!priv->started) return rte_flow; + rte_flow->qp = priv->flow_drop_queue->qp; rte_flow->ibv_flow = ibv_exp_create_flow(rte_flow->qp, rte_flow->ibv_attr); if (!rte_flow->ibv_flow) { -- 2.1.4