net_sched: fix mirrored packets checksum
authorWANG Cong <xiyou.wangcong@gmail.com>
Thu, 30 Jun 2016 17:15:22 +0000 (10:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jul 2016 16:47:31 +0000 (09:47 -0700)
commit2832302fc90bbf2d99a449481a9bb6ee1a5eacc7
tree9145961bcf1127e526e4e5e00cd7f2bb534ff34b
parent424848bd9895979e2758156ca99e317a3c2d5804
net_sched: fix mirrored packets checksum

[ Upstream commit 82a31b9231f02d9c1b7b290a46999d517b0d312a ]

Similar to commit 9b368814b336 ("net: fix bridge multicast packet checksum validation")
we need to fixup the checksum for CHECKSUM_COMPLETE when
pushing skb on RX path. Otherwise we get similar splats.

Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Tom Herbert <tom@herbertland.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/skbuff.h
net/core/skbuff.c
net/sched/act_mirred.c