net/af_xdp: don't free the mempool on umem destruction
PATCH 1/1 net/af_xdp: don't free the mempool on umem destruction
Other PMDs may be using the mempool, so don't free it when destroying the UMEM.
Fixes d8a210774e1d ("net/af_xdp: support unaligned umem chunks")
Signed-off-by Ciara Loftus <[email protected]>
--- drivers/net/af_xdp/rte_eth_af_xdp.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/af_xdp/rte_eth_af_xdp.c +0 -1
@@ -688,7 +688,6 @@ static void xdp_umem_destroy(struct xsk_umem_info *umem) {#if defined(XDP_UMEM_UNALIGNED_CHUNK_FLAG ) -rte_mempool_free (umem->mb_pool); umem->mb_pool =NULL ;#else rte_memzone_free (umem->mz);
Signature · 1 line
2.17.1
Ferruh Yigit
AppliedQuoted 7 lines · Ciara Loftus
Other PMDs may be using the mempool, so don't free it when destroying the UMEM.
Fixes d8a210774e1d ("net/af_xdp: support unaligned umem chunks")Signed-off-by Ciara Loftus <[email protected]>
Applied to dpdk-next-net/master, thanks.