[dpdk-dev] [PATCH v6 4/5] mbuf: add a pktmbuf copy routine

David Marchand david.marchand at redhat.com
Thu Oct 17 07:01:22 CEST 2019


On Wed, Oct 16, 2019 at 8:58 AM Olivier Matz <olivier.matz at 6wind.com> wrote:
>
> 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>

Squashed with next patch, since a separate patch for the test added not much.

Applied, thanks.



--
David Marchand



More information about the dev mailing list