From 39e98c21be6cb84becbeeedd20428c32242249f5 Mon Sep 17 00:00:00 2001 From: Yongseok Koh Date: Wed, 12 Dec 2018 03:11:32 -0800 Subject: [PATCH] net/mlx5: fix Multi-Packet RQ mempool free When MPRQ mempool is freed, the pointer stored in priv structure must be reset to null. Otherwise, the mempool can be freed again if the port is restarted. Fixes: 7d6bf6b866b8 ("net/mlx5: add Multi-Packet Rx support") Cc: stable@dpdk.org Signed-off-by: Yongseok Koh Acked-by: Shahaf Shuler --- drivers/net/mlx5/mlx5_rxq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c index 183da0e282..34c8338723 100644 --- a/drivers/net/mlx5/mlx5_rxq.c +++ b/drivers/net/mlx5/mlx5_rxq.c @@ -1179,6 +1179,7 @@ mlx5_mprq_free_mp(struct rte_eth_dev *dev) continue; rxq->mprq_mp = NULL; } + priv->mprq_mp = NULL; return 0; } -- 2.20.1