bpf: Clear skb->tstamp in bpf_redirect when necessary
authorLorenz Bauer <lmb@cloudflare.com>
Fri, 13 Dec 2019 18:08:17 +0000 (18:08 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 13 Dec 2019 23:21:48 +0000 (15:21 -0800)
commit5133498f4ad1123a5ffd4c08df6431dab882cc32
treeb0e929d19f4151527a372183668f42662bd72390
parent0af67e49b018e7280a4227bfe7b6005bc9d3e442
bpf: Clear skb->tstamp in bpf_redirect when necessary

Redirecting a packet from ingress to egress by using bpf_redirect
breaks if the egress interface has an fq qdisc installed. This is the same
problem as fixed in 'commit 8203e2d844d3 ("net: clear skb->tstamp in forwarding paths")

Clear skb->tstamp when redirecting into the egress path.

Fixes: 80b14dee2bea ("net: Add a new socket option for a future transmit time.")
Fixes: fb420d5d91c1 ("tcp/fq: move back to CLOCK_MONOTONIC")
Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/bpf/20191213180817.2510-1-lmb@cloudflare.com
net/core/filter.c