summaryrefslogtreecommitdiff
path: root/lib/raid6
diff options
context:
space:
mode:
authorShani Michaeli <shanim@mellanox.com>2014-11-09 14:51:53 +0300
committerDavid S. Miller <davem@davemloft.net>2014-11-11 21:20:02 +0300
commitf8c6455bb04b944edb69e9b074e28efee2c56bdd (patch)
tree9f4f031bb3a33ea164aa2014294c027c478e1d7e /lib/raid6
parentdd65beac48a5259945846956d4b27344dfb73bd9 (diff)
downloadlinux-f8c6455bb04b944edb69e9b074e28efee2c56bdd.tar.xz
net/mlx4_en: Extend checksum offloading by CHECKSUM COMPLETE
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 <hkchu@google.com> Signed-off-by: Shani Michaeli <shanim@mellanox.com> Signed-off-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/raid6')
0 files changed, 0 insertions, 0 deletions