public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
* [PATCH] doc: add link to mbuf layout history
@ 2026-04-07  8:05 Thomas Monjalon
  2026-04-07  8:44 ` Morten Brørup
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Monjalon @ 2026-04-07  8:05 UTC (permalink / raw)
  To: dev; +Cc: Morten Brørup

In order to illustrate how mbuf is kept small,
add a link to a page showing the mbuf layout for each version.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
 doc/guides/prog_guide/mbuf_lib.rst | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/doc/guides/prog_guide/mbuf_lib.rst b/doc/guides/prog_guide/mbuf_lib.rst
index 382bfbdca4..97f8e72356 100644
--- a/doc/guides/prog_guide/mbuf_lib.rst
+++ b/doc/guides/prog_guide/mbuf_lib.rst
@@ -8,11 +8,12 @@ The Packet (MBuf) library provides the ability to allocate and free buffers (mbu
 that may be used by the DPDK application to store message buffers.
 The message buffers are stored in a mempool, using the :doc:`mempool_lib`.
 
-A rte_mbuf struct generally carries network packet buffers, but it can actually
-be any data (control data, events, ...).
-The rte_mbuf header structure is kept as small as possible and currently uses
-just two cache lines, with the most frequently used fields being on the first
-of the two cache lines.
+A ``struct rte_mbuf`` generally carries network packet buffers,
+but it can actually be any data (control data, events, etc).
+The ``rte_mbuf`` header structure is
+`kept as small as possible <https://doc.dpdk.org/struct/mbuf/history.html>`_
+and currently uses just two 64-byte cache lines,
+with the most frequently used fields being on the first of the two cache lines.
 
 Design of Packet Buffers
 ------------------------
-- 
2.53.0


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

* RE: [PATCH] doc: add link to mbuf layout history
  2026-04-07  8:05 [PATCH] doc: add link to mbuf layout history Thomas Monjalon
@ 2026-04-07  8:44 ` Morten Brørup
  2026-04-07 10:35   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Morten Brørup @ 2026-04-07  8:44 UTC (permalink / raw)
  To: Thomas Monjalon, dev

> From: Thomas Monjalon [mailto:thomas@monjalon.net]
> Sent: Tuesday, 7 April 2026 10.06
> 
> In order to illustrate how mbuf is kept small,
> add a link to a page showing the mbuf layout for each version.
> 
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> ---
>  doc/guides/prog_guide/mbuf_lib.rst | 11 ++++++-----
>  1 file changed, 6 insertions(+), 5 deletions(-)
> 
> diff --git a/doc/guides/prog_guide/mbuf_lib.rst
> b/doc/guides/prog_guide/mbuf_lib.rst
> index 382bfbdca4..97f8e72356 100644
> --- a/doc/guides/prog_guide/mbuf_lib.rst
> +++ b/doc/guides/prog_guide/mbuf_lib.rst
> @@ -8,11 +8,12 @@ The Packet (MBuf) library provides the ability to
> allocate and free buffers (mbu
>  that may be used by the DPDK application to store message buffers.
>  The message buffers are stored in a mempool, using the
> :doc:`mempool_lib`.
> 
> -A rte_mbuf struct generally carries network packet buffers, but it can
> actually
> -be any data (control data, events, ...).
> -The rte_mbuf header structure is kept as small as possible and
> currently uses
> -just two cache lines, with the most frequently used fields being on
> the first
> -of the two cache lines.
> +A ``struct rte_mbuf`` generally carries network packet buffers,
> +but it can actually be any data (control data, events, etc).
> +The ``rte_mbuf`` header structure is
> +`kept as small as possible
> <https://doc.dpdk.org/struct/mbuf/history.html>`_
> +and currently uses just two 64-byte cache lines,
> +with the most frequently used fields being on the first of the two
> cache lines.
> 
>  Design of Packet Buffers
>  ------------------------
> --
> 2.53.0

Hadn't noticed that illustration before, so good idea linking to it here.

Acked-by: Morten Brørup <mb@smartsharesystems.com>


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

* Re: [PATCH] doc: add link to mbuf layout history
  2026-04-07  8:44 ` Morten Brørup
@ 2026-04-07 10:35   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2026-04-07 10:35 UTC (permalink / raw)
  To: Morten Brørup; +Cc: dev

07/04/2026 10:44, Morten Brørup:
> > From: Thomas Monjalon [mailto:thomas@monjalon.net]
> > In order to illustrate how mbuf is kept small,
> > add a link to a page showing the mbuf layout for each version.
> > 
[...]
> Hadn't noticed that illustration before, so good idea linking to it here.

You didn't notice because it's a new page.
Thanks easter week-end :-)



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

end of thread, other threads:[~2026-04-07 10:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07  8:05 [PATCH] doc: add link to mbuf layout history Thomas Monjalon
2026-04-07  8:44 ` Morten Brørup
2026-04-07 10:35   ` Thomas Monjalon

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