DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] mbuf: add optional dynfield3 storage
@ 2026-09-24 19:37 Randy L Tice
  2026-09-24 19:37 ` [PATCH 1/1] " Randy L Tice
  2026-09-25 19:31 ` [PATCH v2 0/1] " Randy L Tice
  0 siblings, 2 replies; 24+ messages in thread
From: Randy L Tice @ 2026-09-24 19:37 UTC (permalink / raw)
  To: dev; +Cc: mb, bruce.richardson

This patch adds build-time optional backing storage for the Dynamic
Mbuf Fields allocator.

The new mbuf_dynfield3_cnt Meson option reserves an additional
cache-line-aligned area at the end of struct rte_mbuf. The default value
is zero, so the default mbuf layout is unchanged. A non-zero value makes
the area available to the dynamic mbuf field allocator and to the normal
dynamic-field copy path.

The enabled configuration increases sizeof(struct rte_mbuf). The release
note calls out mempool/octeontx as a known fixed-size assumption that
needs follow-up before that driver can be built with a non-zero setting.

Validation:
- devtools/check-git-log.sh -n1
- devtools/checkpatches.sh -n1
- devtools/checkpatches.sh on exported patch
- devtools/get-maintainer.sh on exported patch
- Meson setup with default mbuf_dynfield3_cnt
- Meson setup with invalid -Dmbuf_dynfield3_cnt=1, which failed at
  configure time with the expected cache-line multiple error
- native Meson/Ninja build with default mbuf_dynfield3_cnt
- native Meson/Ninja build with -Dmbuf_dynfield3_cnt=0
- native Meson/Ninja build with -Dmbuf_dynfield3_cnt=8 and
  -Ddisable_drivers=mempool/octeontx

Randy Tice (1):
  mbuf: add optional dynfield3 storage

 app/test/test_mbuf.c                   |  5 +++--
 config/meson.build                     | 10 ++++++++++
 doc/guides/rel_notes/release_26_11.rst | 15 +++++++++++++++
 lib/mbuf/rte_mbuf.h                    |  3 +++
 lib/mbuf/rte_mbuf_core.h               | 16 ++++++++++++++++
 lib/mbuf/rte_mbuf_dyn.c                |  3 +++
 meson_options.txt                      |  2 ++
 7 files changed, 52 insertions(+), 2 deletions(-)

-- 
2.35.6

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

end of thread, other threads:[~2026-10-08 16:15 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-24 19:37 [PATCH 0/1] mbuf: add optional dynfield3 storage Randy L Tice
2026-09-24 19:37 ` [PATCH 1/1] " Randy L Tice
2026-09-25  9:48   ` Morten Brørup
2026-09-25 19:31 ` [PATCH v2 0/1] " Randy L Tice
2026-09-25 19:31   ` [PATCH v2 1/1] " Randy L Tice
2026-09-26 16:51     ` Stephen Hemminger
2026-09-28 14:45       ` Randy Tice (rtice)
2026-09-28 18:16   ` [PATCH v3 0/1] mbuf: add optional no-copy dynamic field storage Randy L Tice
2026-09-28 18:16     ` [PATCH v3 1/1] " Randy L Tice
2026-09-29  7:15       ` Morten Brørup
2026-09-29 11:59       ` Konstantin Ananyev
2026-09-29 12:44         ` Morten Brørup
2026-09-29 13:12           ` Konstantin Ananyev
2026-09-29 13:34             ` Morten Brørup
2026-09-29 14:14               ` Konstantin Ananyev
2026-09-29 14:44                 ` Randy Tice (rtice)
2026-09-29 15:20                   ` Morten Brørup
2026-09-29 19:03                     ` Randy Tice (rtice)
2026-09-29 19:28                       ` Konstantin Ananyev
2026-09-29 19:26                   ` Konstantin Ananyev
2026-10-06 15:54     ` [PATCH v4 0/1] mbuf: add runtime metadata dynamic-field storage Randy L Tice
2026-10-06 15:54       ` [PATCH v4 1/1] " Randy L Tice
2026-10-06 16:51       ` [PATCH v4 0/1] " Stephen Hemminger
2026-10-08 16:15         ` Randy Tice (rtice)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox