#
6ce2b689 |
| 09-Apr-2024 |
Jakub Kicinski <kuba@kernel.org> |
selftests: net: reuse common code in bpf_offload
net/lib/py/nsim.py already contains the most useful parts of the netdevsim wrapper classes. Reuse them.
Acked-by: Stanislav Fomichev <sdf@google.com
selftests: net: reuse common code in bpf_offload
net/lib/py/nsim.py already contains the most useful parts of the netdevsim wrapper classes. Reuse them.
Acked-by: Stanislav Fomichev <sdf@google.com> Acked-by: Martin KaFai Lau <martin.lau@kernel.org> Link: https://lore.kernel.org/r/20240409031549.3531084-5-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
#
b1c2ce11 |
| 09-Apr-2024 |
Jakub Kicinski <kuba@kernel.org> |
selftests: net: declare section names for bpf_offload
Non-ancient ip (iproute2-5.15.0, libbpf 0.7.0) refuses to load the sample with maps because we don't generate BTF:
libbpf: BTF is required,
selftests: net: declare section names for bpf_offload
Non-ancient ip (iproute2-5.15.0, libbpf 0.7.0) refuses to load the sample with maps because we don't generate BTF:
libbpf: BTF is required, but is missing or corrupted. ERROR: opening BPF object file failed
Enable BTF by adding -g to clang flags. With that done neither of the programs load:
libbpf: prog 'func': error relocating .BTF.ext function info: -22 libbpf: prog 'func': failed to relocate calls: -22 libbpf: failed to load object 'ksft-net-drv/net/sample_ret0.bpf.o'
Andrii explains that this is because we don't specify section names for the code. Add the section names, too.
Acked-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Stanislav Fomichev <sdf@google.com> Acked-by: Martin KaFai Lau <martin.lau@kernel.org> Link: https://lore.kernel.org/r/20240409031549.3531084-4-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
#
fc50c698 |
| 09-Apr-2024 |
Jakub Kicinski <kuba@kernel.org> |
selftests: net: bpf_offload: wait for maps
Maps are removed asynchronously. Either there's a bigger delay now or the test has always been flaky. Retry waiting in the loop.
Acked-by: Stanislav Fomic
selftests: net: bpf_offload: wait for maps
Maps are removed asynchronously. Either there's a bigger delay now or the test has always been flaky. Retry waiting in the loop.
Acked-by: Stanislav Fomichev <sdf@google.com> Acked-by: Martin KaFai Lau <martin.lau@kernel.org> Link: https://lore.kernel.org/r/20240409031549.3531084-3-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
#
e59f0e93 |
| 09-Apr-2024 |
Jakub Kicinski <kuba@kernel.org> |
selftests: move bpf-offload test from bpf to net
We're building more python tests on the netdev side, and some of the classes from the venerable BPF offload tests can be reused.
Acked-by: Stanislav
selftests: move bpf-offload test from bpf to net
We're building more python tests on the netdev side, and some of the classes from the venerable BPF offload tests can be reused.
Acked-by: Stanislav Fomichev <sdf@google.com> Acked-by: Martin KaFai Lau <martin.lau@kernel.org> Link: https://lore.kernel.org/r/20240409031549.3531084-2-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|