Skip to content

selftests: move bpf-offload test from bpf to net

Jakub Kicinski bpf linux-kselftest netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4selftests: move bpf-offload test from bpf to nettools/testing/selftests/bpf/Makefile tools/testing/selftests/net/Makefile tools/testing/selftests/net/bpf_offload.py +2 more+7 -20 repliesApplied
2/4selftests: net: bpf_offload: wait for mapstools/testing/selftests/net/bpf_offload.py+8 -80 repliesApplied
3/4selftests: net: declare section names for bpf_offloadtools/testing/selftests/net/Makefile tools/testing/selftests/net/bpf_offload.py tools/testing/selftests/net/sample_map_ret0.bpf.c +1 more+7 -31 replyApplied
4/4selftests: net: reuse common code in bpf_offloadtools/testing/selftests/net/bpf_offload.py tools/testing/selftests/net/lib/py/nsim.py+35 -940 repliesApplied

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchStanislav FomichevAlexei StarovoitovMartin KaFai Lau
SeriesA-b A-b
1/4
2/4
3/4A-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH net-next 0/4] selftests: move bpf-offload test from bpf to net

The test_offload.py test fits in networking and bpf equally well. We started adding more Python tests in networking and some of the code in test_offload.py can be reused, so move it to networking. Looks like it bit rotted over time and some fixes are needed.

Admittedly more code could be extracted but I only had the time for a minor cleanup :(

Jakub Kicinski (4):
selftests: move bpf-offload test from bpf to net
selftests: net: bpf_offload: wait for maps
selftests: net: declare section names for bpf_offload
selftests: net: reuse common code in bpf_offload

 tools/testing/selftests/bpf/Makefile          |   1 -
 tools/testing/selftests/net/Makefile          |  11 +-
 .../test_offload.py => net/bpf_offload.py}    | 138 +++++-------------
 tools/testing/selftests/net/lib/py/nsim.py    |   9 +-
 .../sample_map_ret0.bpf.c}                    |   2 +-
 .../sample_ret0.c => net/sample_ret0.bpf.c}   |   3 +
 6 files changed, 57 insertions(+), 107 deletions(-)
 rename tools/testing/selftests/{bpf/test_offload.py => net/bpf_offload.py} (93%)
 rename tools/testing/selftests/{bpf/progs/sample_map_ret0.c => net/sample_map_ret0.bpf.c} (96%)
 rename tools/testing/selftests/{bpf/progs/sample_ret0.c => net/sample_ret0.bpf.c} (70%)
Signature · 1 line
2.44.0