diff options
| author | Björn Töpel <[email protected]> | 2021-03-08 11:29:06 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2021-03-10 00:06:34 +0000 |
| commit | e6a4750ffe9d701c4d55212b14b615e63571d235 (patch) | |
| tree | 0e807fb18dde8e4d6c7eb0495f25be9183bfdb2c /tools/testing/selftests/bpf/progs/task_ls_recursion.c | |
| parent | selftests/bpf: Fix compiler warning in BPF_KPROBE definition in loop6.c (diff) | |
| download | kernel-e6a4750ffe9d701c4d55212b14b615e63571d235.tar.gz kernel-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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Jesper Dangaard Brouer <[email protected]>
Acked-by: Toke Høiland-Jørgensen <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/task_ls_recursion.c')
0 files changed, 0 insertions, 0 deletions
