]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit501ae0eb158dde8b4bad61d29a7b748e0602629c
tree7a95879de0f7b22181a67c2e7e23e7407d97b529
parent186a2456ec1da5981d4c9ba2b0aa330ee61ae86d
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