Drivers: net: hyperv: Address UDP checksum issues
authorKY Srinivasan <kys@microsoft.com>
Wed, 9 Apr 2014 22:00:47 +0000 (15:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Apr 2014 19:15:12 +0000 (15:15 -0400)
commitaf9893a3dc790ae0c4d3e68adde12bc3cb9c63fa
tree7a95879de0f7b22181a67c2e7e23e7407d97b529
parent1f73db495aaa0f1eb4de84856d9ea46711898c08
Drivers: net: hyperv: Address UDP checksum issues

ws2008r2 does not support UDP checksum offload. Thus, we cannnot turn on
UDP offload in the host. Also, on ws2012 and ws2012 r2, there appear to be
an issue with UDP checksum offload.
Fix this issue by computing the UDP checksum in the Hyper-V driver.

Based on Dave Miller's comments, in this version, I have COWed the skb
before modifying the UDP header (the checksum field).

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc_drv.c
drivers/net/hyperv/rndis_filter.c