numam-dpdk/lib/librte_mbuf
Stephen Hemminger c3a90c381d mbuf: add a copy routine
This is a commonly used operation that surprisingly the
DPDK has not supported. The new rte_pktmbuf_copy does a
deep copy of packet. This is a complete copy including
meta-data.

It handles the case where the source mbuf comes from a pool
with larger data area than the destination pool. The routine
also has options for skipping data, or truncating at a fixed
length.

This patch also introduces internal inline to copy the
metadata fields of mbuf.

Add a test for this new function, based of the clone tests.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2019-10-16 12:43:53 +02:00
..
Makefile mbuf: add a non fatal sanity check helper 2019-01-15 02:40:40 +01:00
meson.build mbuf: add a non fatal sanity check helper 2019-01-15 02:40:40 +01:00
rte_mbuf_pool_ops.c
rte_mbuf_pool_ops.h
rte_mbuf_ptype.c mbuf: add IGMP packet type 2018-10-25 15:51:16 +02:00
rte_mbuf_ptype.h doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
rte_mbuf_version.map mbuf: add a copy routine 2019-10-16 12:43:53 +02:00
rte_mbuf.c mbuf: add a copy routine 2019-10-16 12:43:53 +02:00
rte_mbuf.h mbuf: add a copy routine 2019-10-16 12:43:53 +02:00