[PATCH v2] net/mlx5: fix lro update tcp header cksum error

Raslan Darawsheh rasland at nvidia.com
Tue Jul 18 13:58:59 CEST 2023


Hi,

> -----Original Message-----
> From: jiangheng (G) <jiangheng14 at huawei.com>
> Sent: Thursday, April 13, 2023 3:58 AM
> To: Slava Ovsiienko <viacheslavo at nvidia.com>; dev at dpdk.org; Matan Azrad
> <matan at nvidia.com>
> Subject: [PATCH v2] net/mlx5: fix lro update tcp header cksum error
> 
> The variable csum is the sum of three 16 bits integers, the max value is
> 0x2FFFD. The corner case of sum of 3 is 0x1FFFF gives the wrong
> result: 0x1 + 0xFFFF = 0x10000, the upper 16 bits are not 0.
> It must be folded again to ensure that the upper 16 bits are 0.
> 
> Fixes: e4c2a16eb1de ("net/mlx5: handle LRO packets in Rx queue")
> Cc: stable at dpdk.org
> 
> Signed-off-by: jiangheng <jiangheng14 at huawei.com>
Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh


More information about the dev mailing list