]> git.droids-corp.org - dpdk.git/commit
mempool/cnxk: avoid batch op free for empty pools
authorAshwin Sekhar T K <asekhar@marvell.com>
Thu, 28 Apr 2022 09:59:35 +0000 (15:29 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 8 Jun 2022 09:11:32 +0000 (11:11 +0200)
commit7c754f553e500557f322958647281d541899ed14
treee388c818e0de6b1ce69daec5036495c5ac2df151
parent6b41a76f5fc1e31b10ddba2aa0c1b8ca668fbbc7
mempool/cnxk: avoid batch op free for empty pools

Batch op data is initialized inside mempool alloc. But
in case of empty mempools, the alloc function is not
called and hence the initialization of batch op data is
also not done. So ensure the validity of batch op data
inside mempool free.

Signed-off-by: Ashwin Sekhar T K <asekhar@marvell.com>
drivers/mempool/cnxk/cn10k_mempool_ops.c