]> git.baikalelectronics.ru Git - kernel.git/commit
netvsc: fix checksum on UDP IPV6
authorstephen hemminger <stephen@networkplumber.org>
Tue, 11 Oct 2016 21:03:07 +0000 (14:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Oct 2016 14:48:17 +0000 (10:48 -0400)
commit93b794ec8519a927a02c14b3a2750fc2807b4e87
tree7fb1553108787c7b3d84ebb08d9bd85a781822a3
parent9cb2d65a1bc55317c20a08a23948ad1c93d6b75e
netvsc: fix checksum on UDP IPV6

The software calculation of UDP checksum in Netvsc driver was
only handling IPv4 case. By using skb_checksum_help() instead
all protocols can be handled. Rearrange code to eliminate goto
and look like other drivers.

This is a temporary solution; recent versions of Window Server etc
do support UDP checksum offload, just need to do the appropriate negotiation
with host to validate before using. This will be done in later patch.

Please queue this for -stable as well.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c