[ovs-dev] [PATCH v5 3/9] dp-packet: Refactor offloading API.

Flavio Leitner fbl at sysclose.org
Tue Feb 19 21:02:27 UTC 2019


On Mon, Feb 18, 2019 at 07:00:19PM +0300, Ilya Maximets wrote:
> 1. No reason to have mbuf related APIs in a generic code.
> 2. Not only RSS/checksums should be invalidated in case of tunnel
>    decapsulation or sending to 'ring' ports.
> 
> In order to fix two above issues, new function
> 'dp_packet_reset_offload' introduced. In order to clean up/unify
> the code and simplify addition of new offloading features to non-DPDK
> version of dp_packet, introduced 'ol_flags' bitmask. Additionally
> reduced code complexity in 'dp_packet_clone_with_headroom' by using
> already existent generic APIs.
> 
> Unfortunately, we still need to have a special case for mbuf
> initialization inside 'dp_packet_init__()'.
> 'dp_packet_init_specific()' introduced for this purpose as a generic
> API for initialization of the implementation-specific fields.
> 
> Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
> ---

Acked-by: Flavio Leitner <fbl at sysclose.org>




More information about the dev mailing list