Skip to content

selftests/bpf: Migrate test_tunnel.sh to test_progs

Bastien Curutchet (eBPF Foundation) bpf linux-kselftest lkml 2 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected] change-id 20250131-tunnels-59b641ea3f10

Versions newest first

  1. v2 Latest10 patches 2 repliesApplied 10/10
  2. v110 patches 12 repliesSuperseded

Changes in v2 from the cover letter

- PATCH 1: Move tc_hook definition to attatch_tc_prog()
- PATCH 4: Disable DAD through ip addr
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 All 10 applied

#Subject and filesSizeRepliesApplied
1/10selftests/bpf: test_tunnel: Add generic_attach* helperstools/testing/selftests/bpf/prog_tests/test_tunnel.c+66 -741 replyApplied
2/10selftests/bpf: test_tunnel: Add ping helperstools/testing/selftests/bpf/prog_tests/test_tunnel.c+24 -290 repliesApplied
3/10selftests/bpf: test_tunnel: Move gre tunnel test to test_progstools/testing/selftests/bpf/prog_tests/test_tunnel.c tools/testing/selftests/bpf/test_tunnel.sh+97 -790 repliesApplied
4/10selftests/bpf: test_tunnel: Move ip6gre tunnel test to test_progstools/testing/selftests/bpf/prog_tests/test_tunnel.c tools/testing/selftests/bpf/test_tunnel.sh+104 -951 replyApplied
5/10selftests/bpf: test_tunnel: Move erspan tunnel tests to test_progstools/testing/selftests/bpf/prog_tests/test_tunnel.c tools/testing/selftests/bpf/test_tunnel.sh+46 -520 repliesApplied
6/10selftests/bpf: test_tunnel: Move ip6erspan tunnel test to test_progstools/testing/selftests/bpf/prog_tests/test_tunnel.c tools/testing/selftests/bpf/test_tunnel.sh+41 -580 repliesApplied
7/10selftests/bpf: test_tunnel: Move geneve tunnel test to test_progstools/testing/selftests/bpf/prog_tests/test_tunnel.c tools/testing/selftests/bpf/test_tunnel.sh+45 -450 repliesApplied
8/10selftests/bpf: test_tunnel: Move ip6geneve tunnel test to test_progstools/testing/selftests/bpf/prog_tests/test_tunnel.c tools/testing/selftests/bpf/test_tunnel.sh+48 -490 repliesApplied
9/10selftests/bpf: test_tunnel: Move ip6tnl tunnel tests to test_progstools/testing/selftests/bpf/prog_tests/test_tunnel.c tools/testing/selftests/bpf/test_tunnel.sh+59 -880 repliesApplied
10/10selftests/bpf: test_tunnel: Remove test_tunnel.shtools/testing/selftests/bpf/Makefile tools/testing/selftests/bpf/test_tunnel.sh+0 -1800 repliesApplied

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchStanislav Fomichev
1/10A-b
2/10A-b
3/10A-b
4/10A-b
5/10A-b
6/10A-b
7/10A-b
8/10A-b
9/10A-b
10/10A-b

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

Read the v2 thread

Cover letter [PATCH bpf-next v2 00/10] selftests/bpf: Migrate test_tunnel.sh to test_progs

Hi all,

This patch series continues the work to migrate the *.sh tests into prog_tests framework.

The test_tunnel.sh script has already been partly migrated to test_progs in prog_tests/test_tunnel.c so I add my work to it.

PATCH 1 & 2 create some helpers to avoid code duplication and ease the migration in the following patches.
PATCH 3 to 9 migrate the tests of gre, ip6gre, erspan, ip6erspan, geneve, ip6geneve and ip6tnl tunnels.
PATCH 10 removes test_tunnel.sh

---
Changes in v2:
- PATCH 1: Move tc_hook definition to attatch_tc_prog()
- PATCH 4: Disable DAD through ip addr
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Bastien Curutchet (eBPF Foundation) (10):
selftests/bpf: test_tunnel: Add generic_attach* helpers selftests/bpf: test_tunnel: Add ping helpers selftests/bpf: test_tunnel: Move gre tunnel test to test_progs selftests/bpf: test_tunnel: Move ip6gre tunnel test to test_progs selftests/bpf: test_tunnel: Move erspan tunnel tests to test_progs selftests/bpf: test_tunnel: Move ip6erspan tunnel test to test_progs selftests/bpf: test_tunnel: Move geneve tunnel test to test_progs selftests/bpf: test_tunnel: Move ip6geneve tunnel test to test_progs selftests/bpf: test_tunnel: Move ip6tnl tunnel tests to test_progs selftests/bpf: test_tunnel: Remove test_tunnel.sh

 tools/testing/selftests/bpf/Makefile               |   1 -
 .../testing/selftests/bpf/prog_tests/test_tunnel.c | 633 ++++++++++++++++----
 tools/testing/selftests/bpf/test_tunnel.sh         | 645 ---------------------
 3 files changed, 530 insertions(+), 749 deletions(-)

---
base-commit: 97b4501198b918f1d0adeb8205004d64f780e472
change-id: 20250131-tunnels-59b641ea3f10

Best regards,

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