numam-dpdk/lib/librte_eal/linuxapp
Bruce Richardson 4cd917b308 mbuf: add userdata pointer field
While some applications may store metadata about packets in the packet
mbuf headroom, this is not a workable solution for packet metadata which
is either:
* larger than the headroom (or headroom is needed for adding pkt headers)
* needs to be shared or copied among packets

To support these use cases in applications, we reserve a general
"userdata" pointer field inside the second cache-line of the mbuf. This
is better than having the application store the pointer to the external
metadata in the packet headroom, as it saves an additional cache-line
from being used.

Apart from storing metadata, this field also provides a general 8-byte
scratch space inside the mbuf for any other application uses that are
applicable.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
2014-10-08 14:24:59 +02:00
..
eal mbuf: add userdata pointer field 2014-10-08 14:24:59 +02:00
igb_uio igb_uio: fix build on RHEL 6.3 2014-09-03 13:28:26 +02:00
kni kni: fix build on Ubuntu 12.04.5 2014-09-30 18:02:20 +02:00
xen_dom0 remove trailing whitespaces 2014-06-11 00:29:34 +02:00
Makefile igb_uio: make compilation optional 2014-06-16 15:02:10 +02:00