net/mlx5: fix Multi-Packet RQ mempool free
authorYongseok Koh <yskoh@mellanox.com>
Wed, 12 Dec 2018 11:11:32 +0000 (03:11 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 21 Dec 2018 15:22:41 +0000 (16:22 +0100)
commit39e98c21be6cb84becbeeedd20428c32242249f5
treeb6729bfb2374be64f4f996f3e9142c74267b49db
parent01431a8790fecaceb27eca813877218b2aa59dc8
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 <yskoh@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_rxq.c