Skip to content

Commit f724d1c

Browse files
committed
doc: add link to mbuf layout history
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> Acked-by: Morten Brørup <mb@smartsharesystems.com>
1 parent 562d29a commit f724d1c

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

doc/guides/prog_guide/mbuf_lib.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ The Packet (MBuf) library provides the ability to allocate and free buffers (mbu
88
that may be used by the DPDK application to store message buffers.
99
The message buffers are stored in a mempool, using the :doc:`mempool_lib`.
1010

11-
A rte_mbuf struct generally carries network packet buffers, but it can actually
12-
be any data (control data, events, ...).
13-
The rte_mbuf header structure is kept as small as possible and currently uses
14-
just two cache lines, with the most frequently used fields being on the first
15-
of the two cache lines.
11+
A ``struct rte_mbuf`` generally carries network packet buffers,
12+
but it can actually be any data (control data, events, etc).
13+
The ``rte_mbuf`` header structure is
14+
`kept as small as possible <https://doc.dpdk.org/struct/mbuf/history.html>`_
15+
and currently uses just two 64-byte cache lines,
16+
with the most frequently used fields being on the first of the two cache lines.
1617

1718
Design of Packet Buffers
1819
------------------------

0 commit comments

Comments
 (0)