[dpdk-dev] [PATCH v6 4/5] mbuf: add a pktmbuf copy routine
Olivier Matz
olivier.matz at 6wind.com
Wed Oct 16 08:58:11 CEST 2019
On Tue, Oct 08, 2019 at 09:33:49AM -0700, Stephen Hemminger wrote:
> 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.
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Olivier Matz <olivier.matz at 6wind.com>
More information about the dev
mailing list