DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] config/cn10k: align mempool elements to 128 bytes
@ 2021-12-13 11:06 pbhagavatula
  2021-12-14  9:23 ` Ruifeng Wang
  2021-12-14 10:30 ` Kevin Traynor
  0 siblings, 2 replies; 6+ messages in thread
From: pbhagavatula @ 2021-12-13 11:06 UTC (permalink / raw)
  To: jerinj, Jan Viktorin, Ruifeng Wang, Bruce Richardson; +Cc: dev, Pavan Nikhilesh

From: Pavan Nikhilesh <pbhagavatula@marvell.com>

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.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
---
 config/arm/meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/config/arm/meson.build b/config/arm/meson.build
index 213324d262..33afe1a9ad 100644
--- a/config/arm/meson.build
+++ b/config/arm/meson.build
@@ -276,7 +276,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'],
-- 
2.17.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-02-12 14:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-13 11:06 [PATCH] config/cn10k: align mempool elements to 128 bytes pbhagavatula
2021-12-14  9:23 ` Ruifeng Wang
2022-01-20  9:51   ` Jerin Jacob
2022-01-21  9:37     ` Jerin Jacob
2022-02-12 14:14       ` Thomas Monjalon
2021-12-14 10:30 ` Kevin Traynor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).