[Patch v2] net/netvsc: fix the calculation of checksums based on mbuf flag

Ferruh Yigit ferruh.yigit at xilinx.com
Tue Apr 26 23:56:35 CEST 2022


On 3/24/2022 5:46 PM, longli at linuxonhyperv.com wrote:
> From: Long Li <longli at microsoft.com>
> 
> The netvsc should use RTE_MBUF_F_TX_L4_MASK and check the masked value to
> decide the correct way to calculate checksums.
> 
> Not checking for RTE_MBUF_F_TX_L4_MASK results in incorrect RNDIS packets
> sent to VSP and incorrect checksums calculated by the VSP.
> 
> Fixes: 4e9c73e96e ("net/netvsc: add Hyper-V network device")
> Cc: stable at dpdk.org

> Signed-off-by: Long Li <longli at microsoft.com>

Reviewed-by: Ferruh Yigit <ferruh.yigit at xilinx.com>

Moving ack from previous version:
Acked-by: Stephen Hemminger <stephen at networkplumber.org>

Applied to dpdk-next-net/main, thanks.


More information about the dev mailing list