]> git.ipfire.org Git - people/ms/linux.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)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 15 Dec 2015 15:50:58 +0000 (15:50 +0000)
commitb822ee7a17efd1bc8c7584da5d0a2c042e9ca5b6
treebfb8eefdf37f0270d353bcf70c24098e3d35a314
parent8a7882bada78e7d7355aafc0ca3c5696d25eb443
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