From: Yongseok Koh Date: Wed, 12 Dec 2018 11:11:32 +0000 (-0800) Subject: net/mlx5: fix Multi-Packet RQ mempool free X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=39e98c21be6cb84becbeeedd20428c32242249f5;p=dpdk.git 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 --- 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; }