summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVamsi Attunuru <vattunuru@marvell.com>2019-09-10 16:33:24 +0530
committerDavid Marchand <david.marchand@redhat.com>2019-10-24 21:12:59 +0200
commit157e55f82db03ea6fa9cbc2d6c82574c10f82335 (patch)
tree1285f6df6a48a91357874fafff7de32adef55dee
parent80f5df0ae02b37f33ef5715ce4f38019611f4d9a (diff)
downloaddpdk-157e55f82db03ea6fa9cbc2d6c82574c10f82335.zip
dpdk-157e55f82db03ea6fa9cbc2d6c82574c10f82335.tar.gz
dpdk-157e55f82db03ea6fa9cbc2d6c82574c10f82335.tar.xz
mempool/octeontx2: remove minimum chunck size limitation
Memory required for the mempool objects need not be physically contiguous on octeontx2's HW, mempool pmd supports the minimum chunk size set by the default handler. Hence discarding the limitation set by the pmd on the min_chunk_size value. Signed-off-by: Vamsi Attunuru <vattunuru@marvell.com> Acked-by: Jerin Jacob <jerinj@marvell.com>
-rw-r--r--drivers/mempool/octeontx2/otx2_mempool_ops.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/drivers/mempool/octeontx2/otx2_mempool_ops.c b/drivers/mempool/octeontx2/otx2_mempool_ops.c
index f5a4fe3..d769575 100644
--- a/drivers/mempool/octeontx2/otx2_mempool_ops.c
+++ b/drivers/mempool/octeontx2/otx2_mempool_ops.c
@@ -713,24 +713,12 @@ static ssize_t
otx2_npa_calc_mem_size(const struct rte_mempool *mp, uint32_t obj_num,
uint32_t pg_shift, size_t *min_chunk_size, size_t *align)
{
- ssize_t mem_size;
-
/*
* Simply need space for one more object to be able to
* fulfill alignment requirements.
*/
- mem_size = rte_mempool_op_calc_mem_size_default(mp, obj_num + 1,
- pg_shift,
- min_chunk_size, align);
- if (mem_size >= 0) {
- /*
- * Memory area which contains objects must be physically
- * contiguous.
- */
- *min_chunk_size = mem_size;
- }
-
- return mem_size;
+ return rte_mempool_op_calc_mem_size_default(mp, obj_num + 1, pg_shift,
+ min_chunk_size, align);
}
static int