linux-stable/drivers/net/hyperv
Stephen Hemminger e52fed7177 netvsc: fix incorrect receive checksum offloading
The Hyper-V netvsc driver was looking at the incorrect status bits
in the checksum info. It was setting the receive checksum unnecessary
flag based on the IP header checksum being correct. The checksum
flag is skb is about TCP and UDP checksum status. Because of this
bug, any packet received with bad TCP checksum would be passed
up the stack and to the application causing data corruption.
The problem is reproducible via netcat and netem.

This had a side effect of not doing receive checksum offload
on IPv6. The driver was also also always doing checksum offload
independent of the checksum setting done via ethtool.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-10-26 23:18:36 -04:00
..
hyperv_net.h hv_netvsc: fix comments 2016-09-24 09:36:12 -04:00
Kconfig
Makefile
netvsc.c hv_netvsc: use consume_skb 2016-09-23 08:39:48 -04:00
netvsc_drv.c netvsc: fix incorrect receive checksum offloading 2016-10-26 23:18:36 -04:00
rndis_filter.c hv_netvsc: style cleanups 2016-08-23 12:05:36 -07:00