hv_netvsc: Fix IP header checksum for coalesced packets
commitbf48648d650db1146b75b9bd358502431e86cf4f
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 22 Feb 2019 18:25:03 +0000 (22 18:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Feb 2019 22:45:02 +0000 (26 14:45 -0800)
tree5c68eba1a15e58e91444685c085446e54ca11629
parentd8e96745a97fb8cf7bd8b239f13b07a5dd313e60
hv_netvsc: Fix IP header checksum for coalesced packets

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>
drivers/net/hyperv/netvsc_drv.c