[PATCH] net/iavf: fix outer udp checksum offload

Xu, Ke1 ke1.xu at intel.com
Fri Dec 2 10:46:20 CET 2022


> -----Original Message-----
> From: Zhichao Zeng <zhichaox.zeng at intel.com>
> Sent: Friday, November 18, 2022 3:03 PM
> To: dev at dpdk.org
> Cc: Zhang, Qi Z <qi.z.zhang at intel.com>; Zhou, YidingX
> <yidingx.zhou at intel.com>; Zeng, ZhichaoX <zhichaox.zeng at intel.com>; Wu,
> Jingjing <jingjing.wu at intel.com>; Xing, Beilei <beilei.xing at intel.com>; Peng
> Zhang <peng1x.zhang at intel.com>
> Subject: [PATCH] net/iavf: fix outer udp checksum offload
> 
> Currently, when dealing with UDP tunnel pkts checksum offloading, the
> outer-udp checksum will be offloaded by default. So the 'csum set outer-udp
> hw/sw' command does not work.
> 
> This patch enables the 'csum set outer-udp hw/sw' command by adding
> judgment on the outer-udp chekcusm offload flag.
> 
> Fixes: f7c8c36fdeb7 ("net/iavf: enable inner and outer Tx checksum offload")
> 
> Signed-off-by: Zhichao Zeng <zhichaox.zeng at intel.com>

Tested and passed. Verified applying only outer IP checksum without outer UDP checksum.
Outer UDP checksum will be errors as this feature is to ignore this checksum error.
Inner checksum is not influenced.
Outer IP checksum is not influenced.

Regards,
Tested-by: Ke Xu <ke1.xu at intel.com>

> ---
>  drivers/net/iavf/iavf_rxtx.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 



More information about the dev mailing list