]> git.droids-corp.org - dpdk.git/commitdiff
config: align mempool elements to 128 bytes on CN10K
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Mon, 13 Dec 2021 11:06:14 +0000 (16:36 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 12 Feb 2022 14:13:24 +0000 (15:13 +0100)
Mempool elements are by default aligned to CACHELINE_SIZE.
In CN10K cacheline size is 64B but the RoC requires buffers to be
aligned to 128B.
Set RTE_MEMPOOL_ALIGN to 128 to force mempool buffers to be aligned
128 bytes.

Fixes: 1b4c86a721c9 ("config/arm: add Marvell CN10K")
Cc: stable@dpdk.org
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
config/arm/meson.build

index dd5e2f38d4dcfd4e2e3d15e0436688ffd2a85c9e..48b88a84f25c761fc3ffdce1e8de5872c3c5c9cf 100644 (file)
@@ -277,7 +277,8 @@ soc_cn10k = {
     'implementer' : '0x41',
     'flags': [
         ['RTE_MAX_LCORE', 24],
-        ['RTE_MAX_NUMA_NODES', 1]
+        ['RTE_MAX_NUMA_NODES', 1],
+        ['RTE_MEMPOOL_ALIGN', 128]
     ],
     'part_number': '0xd49',
     'extra_march_features': ['crypto'],