[ovs-dev] [PATCH v1 08/14] dp-packet: Handle multi-seg mbufs in resize__().

Eelco Chaudron echaudro at redhat.com
Tue Jul 3 12:23:42 UTC 2018



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

> When enabled with DPDK OvS relies on mbufs allocated by mempools to
> receive and output data on DPDK ports. Until now, each OvS dp_packet has
> had only one mbuf associated, which is allocated with the maximum
> possible size, taking the MTU into account. This approach, however,
> doesn't allow us to increase the allocated size in an mbuf, if needed,
> since an mbuf is allocated and initialised upon mempool creation. Thus,
> in the current implementatin this is dealt with by calling
> OVS_NOT_REACHED() and terminating OvS.
>
> To avoid this, and allow the (already) allocated space to be better
> used, dp_packet_resize__() now tries to use the available room, both the
> tailroom and the headroom, to make enough space for the new data. Since
> this happens for packets of source DPBUF_DPDK, the single-segment mbuf
> case mentioned above is also covered by this new aproach in resize__().
>
> Signed-off-by: Tiago Lam <tiago.lam at intel.com>

LGTM,

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

<SNIP>


More information about the dev mailing list