diff options
author | Alexei Starovoitov <ast@plumgrid.com> | 2015-10-07 05:46:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-08 14:02:08 +0200 |
commit | 6bf0577374cfb6c2301dbf4934a4f23ad3d72763 (patch) | |
tree | 2efe3936f2191d84a37b061d1165cf2384862a28 /net | |
parent | act_mirred: clear sender cpu before sending to tx (diff) | |
download | linux-6bf0577374cfb6c2301dbf4934a4f23ad3d72763.tar.xz linux-6bf0577374cfb6c2301dbf4934a4f23ad3d72763.zip |
bpf: clear sender_cpu before xmit
Similar to commit c29390c6dfee ("xps: must clear sender_cpu before forwarding")
the skb->sender_cpu needs to be cleared before xmit.
Fixes: 3896d655f4d4 ("bpf: introduce bpf_clone_redirect() helper")
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/filter.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/filter.c b/net/core/filter.c index 87b78ef0c3d4..bb18c3680001 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -1415,6 +1415,7 @@ static u64 bpf_clone_redirect(u64 r1, u64 ifindex, u64 flags, u64 r4, u64 r5) return dev_forward_skb(dev, skb2); skb2->dev = dev; + skb_sender_cpu_clear(skb2); return dev_queue_xmit(skb2); } |