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 <[email protected]> LGTM, Acked-by: Eelco Chaudron <[email protected]> <SNIP> _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
- [ovs-dev] [PATCH v1 05/14] dp-packet: Fix data_len handling... Tiago Lam
- Re: [ovs-dev] [PATCH v1 05/14] dp-packet: Fix data_len... Eelco Chaudron
- [ovs-dev] [PATCH v1 04/14] netdev-dpdk: Serialise non-pmds ... Tiago Lam
- Re: [ovs-dev] [PATCH v1 04/14] netdev-dpdk: Serialise ... Eelco Chaudron
- [ovs-dev] [PATCH v1 03/14] dp-packet: Fix allocated size on... Tiago Lam
- [ovs-dev] [PATCH v1 06/14] dp-packet: Handle multi-seg mbuf... Tiago Lam
- Re: [ovs-dev] [PATCH v1 06/14] dp-packet: Handle multi... Eelco Chaudron
- [ovs-dev] [PATCH v1 07/14] dp-packet: Handle multi-seg mubf... Tiago Lam
- Re: [ovs-dev] [PATCH v1 07/14] dp-packet: Handle multi... Eelco Chaudron
- [ovs-dev] [PATCH v1 08/14] dp-packet: Handle multi-seg mbuf... Tiago Lam
- Re: [ovs-dev] [PATCH v1 08/14] dp-packet: Handle multi... Eelco Chaudron
- [ovs-dev] [PATCH v1 09/14] dp-packet: copy data from multi-... Tiago Lam
- Re: [ovs-dev] [PATCH v1 09/14] dp-packet: copy data fr... Eelco Chaudron
- [ovs-dev] [PATCH v1 10/14] netdev-dpdk: copy large packet t... Tiago Lam
- Re: [ovs-dev] [PATCH v1 10/14] netdev-dpdk: copy large... Eelco Chaudron
- [ovs-dev] [PATCH v1 11/14] netdev-dpdk: support multi-segme... Tiago Lam
- Re: [ovs-dev] [PATCH v1 11/14] netdev-dpdk: support mu... Eelco Chaudron
- [ovs-dev] [PATCH v1 14/14] dpdk-tests: End-to-end tests for... Tiago Lam
- Re: [ovs-dev] [PATCH v1 14/14] dpdk-tests: End-to-end ... Eelco Chaudron
- [ovs-dev] [PATCH v1 13/14] dpdk-tests: Accept other configs... Tiago Lam
- Re: [ovs-dev] [PATCH v1 13/14] dpdk-tests: Accept othe... Eelco Chaudron
