diff options
author | Sebastian Andrzej Siewior <[email protected]> | 2024-07-04 16:48:15 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-07-05 16:59:37 -0700 |
commit | fecef4cd42c689a200bdd39e6fffa71475904bc1 (patch) | |
tree | 77e6bcb7cb0d8cb5b656646e071fc92d1b13bf7a /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | 3b2aef99221d395ce37efa426d7b50e7dcd621d6 (diff) |
tun: Assign missing bpf_net_context.
During the introduction of struct bpf_net_context handling for
XDP-redirect, the tun driver has been missed.
Jakub also pointed out that there is another call chain to
do_xdp_generic() originating from netif_receive_skb() and drivers may
use it outside from the NAPI context.
Set the bpf_net_context before invoking BPF XDP program within the TUN
driver. Set the bpf_net_context also in do_xdp_generic() if a xdp
program is available.
Reported-by: [email protected]
Reported-by: [email protected]
Reported-by: [email protected]
Fixes: 401cb7dae8130 ("net: Reference bpf_redirect_info via task_struct on PREEMPT_RT.")
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions