OSDN Git Service

ifb: fix packets checksum
authorJon Maxwell <jmaxwell37@gmail.com>
Thu, 24 May 2018 21:38:29 +0000 (07:38 +1000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 03:02:22 +0000 (23:02 -0400)
commitb1d2e4e03f92734ff524f96c4b2287133de7a4a3
tree2e83bb3b27f80a5a5b5a1b684e3fb263ef77a1bd
parent049ff57a2aa6ead1daf16b4d11da44ed17bdb0b5
ifb: fix packets checksum

Fixup the checksum for CHECKSUM_COMPLETE when pulling skbs on RX path.
Otherwise we get splats when tc mirred is used to redirect packets to ifb.

Before fix:

nic: hw csum failure

Signed-off-by: Jon Maxwell <jmaxwell37@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ifb.c