hv_netvsc: Fix IP header checksum for coalesced packets
commitfc693a59689f1d790841ece7db9de8d6659a58a3
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:04:53 +0000 (13 14:04 -0700)
tree69cbe7ea2f5a70794818a59d62b000f233ca2512
parent64a458de60e06900429155fa9c9db4154264829d
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