numam-dpdk/examples
Olivier Matz 355e6735b3 mbuf: fix cloning with private mbuf data
Add a new priv_size field in mbuf structure that should
be initialized at mbuf pool creation. This field contains the
size of the application private data in mbufs.

Introduce new static inline functions rte_mbuf_from_indirect()
and rte_mbuf_to_baddr() to replace the existing macros, which
take the private size in account when attaching and detaching
mbufs.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: Zoltan Kiss <zoltan.kiss@linaro.org>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2015-04-28 11:34:10 +02:00
..
bond apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
cmdline tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
distributor apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
dpdk_qat apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
exception_path apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
helloworld tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
ip_fragmentation apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
ip_pipeline apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
ip_reassembly tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
ipv4_multicast apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
kni apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
l2fwd apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
l2fwd-ivshmem apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
l2fwd-jobstats apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
l3fwd apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
l3fwd-acl apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
l3fwd-power apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
l3fwd-vf apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
link_status_interrupt apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
load_balancer apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
multi_process apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
netmap_compat apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
packet_ordering apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
qos_meter apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
qos_sched apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
quota_watermark apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
rxtx_callbacks apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
skeleton apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
timer tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
vhost mbuf: fix cloning with private mbuf data 2015-04-28 11:34:10 +02:00
vhost_xen apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
vm_power_manager examples: remove useless null checks before rte_free 2015-04-13 22:50:10 +02:00
vmdq apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
vmdq_dcb apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
Makefile examples/l2fwd-jobstats: new example 2015-02-24 22:19:25 +01:00