diff options
| author | Martin KaFai Lau <[email protected]> | 2025-05-01 19:54:07 +0000 |
|---|---|---|
| committer | Martin KaFai Lau <[email protected]> | 2025-05-01 19:54:07 +0000 |
| commit | 86870d0b8f50c3d3b976e7d50ebffd35093bb585 (patch) | |
| tree | 8e70b2f3f16776735b46a9577b88b3a894df0512 /tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c | |
| parent | bpf: Replace offsetof() with struct_size() (diff) | |
| parent | selftests/bpf: xdp_metadata: Check XDP_REDIRCT support for dev-bound progs (diff) | |
| download | kernel-86870d0b8f50c3d3b976e7d50ebffd35093bb585.tar.gz kernel-86870d0b8f50c3d3b976e7d50ebffd35093bb585.zip | |
Merge branch 'bpf-allow-xdp_redirect-for-xdp-dev-bound-programs'
Lorenzo Bianconi says:
====================
bpf: Allow XDP_REDIRECT for XDP dev-bound programs
In the current implementation if the program is dev-bound to a specific
device, it will not be possible to perform XDP_REDIRECT into a DEVMAP or
CPUMAP even if the program is running in the driver NAPI context.
Fix the issue introducing __bpf_prog_map_compatible utility routine in
order to avoid bpf_prog_is_dev_bound() during the XDP program load.
Continue forbidding to attach a dev-bound program to XDP maps.
====================
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c')
0 files changed, 0 insertions, 0 deletions
