]> 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)
commit781ba1a3f8db7bae7c4986a72548d8056f9dc396
tree7a95879de0f7b22181a67c2e7e23e7407d97b529
parentf2b5736159529e64819426e64a44915424f47be1
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