[dpdk-dev] [PATCH] net/tap: add Rx/Tx checksum offload support

Pascal Mazon pascal.mazon at 6wind.com
Tue May 23 08:51:43 CEST 2017


Hi Ferruh,

I'm not sure it would actually be so useful for other vPMDs.
Virtio and vmxnet3 for instance have their own mechanisms for handling
offloading.

Software offload is especially relevant for tap as packets may come from
anywhere (from another process, from a remote netdevice), and the
application would be interested in knowing how good the packet is.

At first, I'd rather keep the code as-is in tap, which is generic enough
to be easily moved later when actual need arise.

Best regards,

Pascal

On Mon, 22 May 2017 13:24:41 +0100
Ferruh Yigit <ferruh.yigit at intel.com> wrote:

> Hi Pascal,
> 
> On 5/22/2017 12:20 PM, Pascal Mazon wrote:
> > This patch adds basic offloading support, widely expected in a PMD.
> > 
> > Verify IPv4 and UDP/TCP checksums upon packet reception, and set
> > ol_flags accordingly.
> > 
> > On Tx, set IPv4 and UDP/TCP checksums when required, considering
> > ol_flags.
> 
> These are not specific to tap and can be used by any virtual PMD, right?
> 
> What do you think moving implementation into more generic location (I
> don't know where right now) and use from there, and other PMDs also can
> benefit from these?
> 
> Thanks,
> ferruh
> 
> > 
> > Signed-off-by: Pascal Mazon <pascal.mazon at 6wind.com>
> 
> <...>
> 



More information about the dev mailing list