Re: [PATCH net-next 8/8] net/mlx4_en: Extend checksum offloading by CHECKSUM COMPLETE
From: Eric Dumazet <hidden>
Date: 2014-10-30 18:22:20
From: Eric Dumazet <hidden>
Date: 2014-10-30 18:22:20
On Thu, 2014-10-30 at 18:06 +0200, Or Gerlitz wrote:
From: Shani Michaeli <redacted> When processing received traffic, pass CHECKSUM_COMPLETE status to the stack, with calculated checksum for non TCP/UDP packets (such as GRE or ICMP). Although the stack expects checksum which doesn't include the pseudo header, the HW adds it. To address that, we are subtracting the pseudo header checksum from the checksum value provided by the HW. In the IPv6 case, we also compute/add the IP header checksum which is not added by the HW for such packets. Cc: Jerry Chu <redacted> Signed-off-by: Shani Michaeli <redacted> Signed-off-by: Or Gerlitz <redacted> ---
Awesome !