Skip to content

selftests/bpf: Migrate test_xdp_vlan.sh into test_progs

Bastien Curutchet (eBPF Foundation) bpf linux-kselftest lkml netdev 1 version In review

Get series with b4
b4 am [email protected] change-id 20250130-xdp_vlan-e825cc4df14a

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2selftests/bpf: test_xdp_vlan: Rename BPF sectionstools/testing/selftests/bpf/progs/test_xdp_vlan.c tools/testing/selftests/bpf/test_xdp_vlan.sh+13 -130 replies
2/2selftests/bpf: Migrate test_xdp_vlan.sh into test_progstools/testing/selftests/bpf/Makefile tools/testing/selftests/bpf/prog_tests/xdp_vlan.c tools/testing/selftests/bpf/test_xdp_vlan.sh +2 more+176 -2543 replies

Reviews trailers per patch

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

PatchStanislav Fomichev
SeriesA-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf-next 0/2] selftests/bpf: Migrate test_xdp_vlan.sh into test_progs

Hi all,

This patch series continues the work to migrate the script tests into prog_tests.

test_xdp_vlan.sh tests the ability of an XDP program to modify the VLAN ids on the fly. This isn't currently covered by an other test in the test_progs framework so I add a new file prog_tests/xdp_vlan.c that does the exact same tests (same network topology, same BPF programs) and remove the script.

---
Bastien Curutchet (eBPF Foundation) (2):
selftests/bpf: test_xdp_vlan: Rename BPF sections selftests/bpf: Migrate test_xdp_vlan.sh into test_progs

 tools/testing/selftests/bpf/Makefile               |   4 +-
 tools/testing/selftests/bpf/prog_tests/xdp_vlan.c  | 175 ++++++++++++++++
 tools/testing/selftests/bpf/progs/test_xdp_vlan.c  |  20 +-
 tools/testing/selftests/bpf/test_xdp_vlan.sh       | 233 ---------------------
 .../selftests/bpf/test_xdp_vlan_mode_generic.sh    |   9 -
 .../selftests/bpf/test_xdp_vlan_mode_native.sh     |   9 -
 6 files changed, 186 insertions(+), 264 deletions(-)

---
base-commit: a814b9be27fb3c3f49343aee4b015b76f5875558
change-id: 20250130-xdp_vlan-e825cc4df14a

Best regards,

Signature · 1 line
Bastien Curutchet (eBPF Foundation) <[email protected]>