]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Feb 2019 22:45:02 +0000 (14:45 -0800)
commitd9050a44e568d724d28585d85f83cb6c21509351
tree5c68eba1a15e58e91444685c085446e54ca11629
parent3eb3382bced556e1c139138c58cbe0dd8c25d371
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