diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2016-06-30 19:15:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-01 22:19:34 +0200 |
commit | 82a31b9231f02d9c1b7b290a46999d517b0d312a (patch) | |
tree | 1da59e437a0c406de78f8d60e2d9a6f880033c6f /net/sched/act_mirred.c | |
parent | packet: Use symmetric hash for PACKET_FANOUT_HASH. (diff) | |
download | linux-82a31b9231f02d9c1b7b290a46999d517b0d312a.tar.xz linux-82a31b9231f02d9c1b7b290a46999d517b0d312a.zip |
net_sched: fix mirrored packets checksum
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>
Diffstat (limited to 'net/sched/act_mirred.c')
-rw-r--r-- | net/sched/act_mirred.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/act_mirred.c b/net/sched/act_mirred.c index 128942bc9e42..1f5bd6ccbd2c 100644 --- a/net/sched/act_mirred.c +++ b/net/sched/act_mirred.c @@ -181,7 +181,7 @@ static int tcf_mirred(struct sk_buff *skb, const struct tc_action *a, if (!(at & AT_EGRESS)) { if (m->tcfm_ok_push) - skb_push(skb2, skb->mac_len); + skb_push_rcsum(skb2, skb->mac_len); } /* mirror is always swallowed */ |