Thread (32 messages) 32 messages, 7 authors, 2014-11-02

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

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 !
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help