hv_netvsc: Fix IP header checksum for coalesced packets
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 22 Feb 2019 18:25:03 +0000 (18:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Mar 2019 06:17:17 +0000 (07:17 +0100)
commitd61918a5e401bc1911d761a7f0c5c760ea1cac4b
tree67a4be2d7b88b9d9de7fb60ffc66bece79c77a92
parent36bd44bcb4b2fef0f1fabc28c4f99f3098ab2cbd
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