]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerLuis Henriques <luis.henriques@canonical.com>
Fri, 20 Jan 2017 13:04:58 +0000 (13:04 +0000)
commitcbf2b659f36ade600904d7d55941db4a33ccbb03
treea713cf15dd15eeb5802b92ef3831ae71c8e56154
parentaa932deb080e64ba753057f1ba5d4d4272742891
netvsc: fix checksum on UDP IPV6

BugLink: http://bugs.launchpad.net/bugs/1650059
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>
(cherry picked from commit ad19bc8a95baee4588e9ec4481297d97c0bec765)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
drivers/net/hyperv/netvsc_drv.c