mbox series

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

Message ID 20250303-tunnels-v2-0-8329f38f0678@bootlin.com (mailing list archive)
Headers show
Series selftests/bpf: Migrate test_tunnel.sh to test_progs | expand

Message

Bastien Curutchet (eBPF Foundation) March 3, 2025, 8:22 a.m. UTC
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

Signed-off-by: Bastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
---
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/20250227-tunnels-v1-0-33df5c30aa04@bootlin.com

---
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,

Comments

patchwork-bot+netdevbpf@kernel.org March 3, 2025, 10:30 p.m. UTC | #1
Hello:

This series was applied to bpf/bpf-next.git (master)
by Martin KaFai Lau <martin.lau@kernel.org>:

On Mon, 03 Mar 2025 09:22:48 +0100 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [bpf-next,v2,01/10] selftests/bpf: test_tunnel: Add generic_attach* helpers
    https://git.kernel.org/bpf/bpf-next/c/6829f3c51baf
  - [bpf-next,v2,02/10] selftests/bpf: test_tunnel: Add ping helpers
    https://git.kernel.org/bpf/bpf-next/c/7289e59a7667
  - [bpf-next,v2,03/10] selftests/bpf: test_tunnel: Move gre tunnel test to test_progs
    https://git.kernel.org/bpf/bpf-next/c/08d20eaa0727
  - [bpf-next,v2,04/10] selftests/bpf: test_tunnel: Move ip6gre tunnel test to test_progs
    https://git.kernel.org/bpf/bpf-next/c/1ea01a806e4c
  - [bpf-next,v2,05/10] selftests/bpf: test_tunnel: Move erspan tunnel tests to test_progs
    https://git.kernel.org/bpf/bpf-next/c/0ecd1e9d3237
  - [bpf-next,v2,06/10] selftests/bpf: test_tunnel: Move ip6erspan tunnel test to test_progs
    https://git.kernel.org/bpf/bpf-next/c/cae41f74b778
  - [bpf-next,v2,07/10] selftests/bpf: test_tunnel: Move geneve tunnel test to test_progs
    https://git.kernel.org/bpf/bpf-next/c/d89542d2534f
  - [bpf-next,v2,08/10] selftests/bpf: test_tunnel: Move ip6geneve tunnel test to test_progs
    https://git.kernel.org/bpf/bpf-next/c/8d8609430576
  - [bpf-next,v2,09/10] selftests/bpf: test_tunnel: Move ip6tnl tunnel tests to test_progs
    https://git.kernel.org/bpf/bpf-next/c/680a75248df7
  - [bpf-next,v2,10/10] selftests/bpf: test_tunnel: Remove test_tunnel.sh
    https://git.kernel.org/bpf/bpf-next/c/c8d6d78cea6e

You are awesome, thank you!