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)
commitad19bc8a95baee4588e9ec4481297d97c0bec765
tree7fb1553108787c7b3d84ebb08d9bd85a781822a3
parentab102b80cef28c20b3ef7794806c3a982c6444fc
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