forked from Minki/linux
bpf: clear sender_cpu before xmit
Similar to commitc29390c6df
("xps: must clear sender_cpu before forwarding") the skb->sender_cpu needs to be cleared before xmit. Fixes:3896d655f4
("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>
This commit is contained in:
parent
d40496a564
commit
6bf0577374
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user