hv_netvsc: Fix IP header checksum for coalesced packets
commitc3a0550e0f1c822f929cb96bd559cb53d00692ce
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 22 Feb 2019 18:25:03 +0000 (22 18:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:03:08 +0000 (13 14:03 -0700)
treec5f08f629c29a06a3edcc3073457141eaae63b10
parent390ca73e722d77ca776df52b351eb855f4ee5ee3
hv_netvsc: Fix IP header checksum for coalesced packets

[ Upstream commit bf48648d650db1146b75b9bd358502431e86cf4f ]

Incoming packets may have IP header checksum verified by the host.
They may not have IP header checksum computed after coalescing.
This patch re-compute the checksum when necessary, otherwise the
packets may be dropped, because Linux network stack always checks it.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/hyperv/netvsc_drv.c