diff options
author | 2024-10-09 12:12:07 +0200 | |
---|---|---|
committer | 2024-10-10 17:53:54 -0700 | |
commit | ac8d16b2d3772934f4cba44cb01bad05b4b2864c (patch) | |
tree | ac812e7c2693c7a5114be8fbfd31125927afe705 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selftests/bpf: add tcx netns cookie tests (diff) | |
download | wireguard-linux-ac8d16b2d3772934f4cba44cb01bad05b4b2864c.tar.xz wireguard-linux-ac8d16b2d3772934f4cba44cb01bad05b4b2864c.zip |
selftests/bpf: fix bpf_map_redirect call for cpu map test
xdp_redir_prog currently redirects packets based on the entry at index 1
in cpu_map, but the corresponding test only manipulates the entry at
index 0. This does not really affect the test in its current form since
the program is detached before having the opportunity to execute, but it
needs to be fixed before being able improve the corresponding test (ie,
not only test attach/detach but also the redirect feature)
Fix this XDP program by making it redirect packets based on entry 0 in
cpu_map instead of entry 1.
Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
Link: https://lore.kernel.org/r/20241009-convert_xdp_tests-v3-1-51cea913710c@bootlin.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions