]> 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)
commit2963b0c89cebff0e92c61c25be71b1e2aeeccc30
tree7fb1553108787c7b3d84ebb08d9bd85a781822a3
parent29b1c52d5c55b4132e344d93986b5a19034cf831
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