[ovs-dev] [PATCH v1 07/14] dp-packet: Handle multi-seg mubfs in shift() func.

Eelco Chaudron echaudro at redhat.com
Tue Jul 3 12:07:53 UTC 2018

On 28 Jun 2018, at 17:41, Tiago Lam wrote:

> In its current implementation dp_packet_shift() is also unaware of
> multi-seg mbufs (that holds data in memory non-contiguously) and assumes
> that data exists contiguously in memory, memmove'ing data to perform the
> shift.
> To add support for multi-seg mbuds a new set of functions was
> introduced, dp_packet_mbuf_shift() and dp_packet_mbuf_write(). These
> functions are used by dp_packet_shift(), when handling multi-seg mbufs,
> to shift and write data within a chain of mbufs.
> Signed-off-by: Tiago Lam <tiago.lam at intel.com>


Acked-by: Eelco Chaudron <echaudro at redhat.com>


More information about the dev mailing list