diff options
author | 2021-03-08 12:29:06 +0100 | |
---|---|---|
committer | 2021-03-10 01:06:34 +0100 | |
commit | e6a4750ffe9d701c4d55212b14b615e63571d235 (patch) | |
tree | 0e807fb18dde8e4d6c7eb0495f25be9183bfdb2c /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | selftests/bpf: Fix compiler warning in BPF_KPROBE definition in loop6.c (diff) | |
download | wireguard-linux-e6a4750ffe9d701c4d55212b14b615e63571d235.tar.xz wireguard-linux-e6a4750ffe9d701c4d55212b14b615e63571d235.zip |
bpf, xdp: Make bpf_redirect_map() a map operation
Currently the bpf_redirect_map() implementation dispatches to the
correct map-lookup function via a switch-statement. To avoid the
dispatching, this change adds bpf_redirect_map() as a map
operation. Each map provides its bpf_redirect_map() version, and
correct function is automatically selected by the BPF verifier.
A nice side-effect of the code movement is that the map lookup
functions are now local to the map implementation files, which removes
one additional function call.
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/bpf/20210308112907.559576-2-bjorn.topel@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions