public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next v3 0/3] selftests/bpf: add coverage for xdp_features in test_progs
@ 2024-10-09 10:12 Alexis Lothoré (eBPF Foundation)
  2024-10-09 10:12 ` [PATCH bpf-next v3 1/3] selftests/bpf: fix bpf_map_redirect call for cpu map test Alexis Lothoré (eBPF Foundation)
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Alexis Lothoré (eBPF Foundation) @ 2024-10-09 10:12 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, David S. Miller,
	Jakub Kicinski, Jesper Dangaard Brouer, John Fastabend,
	Andrii Nakryiko, Martin KaFai Lau, Eduard Zingerman, Song Liu,
	Yonghong Song, KP Singh, Stanislav Fomichev, Hao Luo, Jiri Olsa,
	Mykola Lysenko, Shuah Khan
  Cc: ebpf, Thomas Petazzoni, netdev, bpf, linux-kselftest,
	linux-kernel, Alexis Lothoré (eBPF Foundation)

Hello,
this small series aims to increase coverage of xdp features in
test_progs. The initial versions proposed to rework test_xdp_features.sh
to make it fit in test_progs, but some discussions in v1 and v2 showed
that the script is still needed as a standalone tool. So this new
revision lets test_xdp_features.sh as-is, and rather adds missing
coverage in existing test (cpu map). The new revision is now also a
follow-up to the update performed by Florian Kauer in [1] for devmap
programs testing.

[1] https://lore.kernel.org/bpf/20240911-devel-koalo-fix-ingress-ifindex-v4-2-5c643ae10258@linutronix.de/

---
Changes in v3:
- Drop xdp_features rework commit
- update xdp_cpumap_attach to extend its coverage
- Link to v2: https://lore.kernel.org/r/20240910-convert_xdp_tests-v2-1-a46367c9d038@bootlin.com

Changes in v2:
- fix endianness management in userspace packet parsing (call htonl on
  constant rather than packet part)

The new test has been run in a local x86 environment and in CI:
 #560/1   xdp_cpumap_attach/CPUMAP with programs in entries:OK
 #560/2   xdp_cpumap_attach/CPUMAP with frags programs in entries:OK
 #560/3   xdp_cpumap_attach/CPUMAP attach with programs in entries on veth:OK
 #560     xdp_cpumap_attach:OK
 Summary: 1/3 PASSED, 0 SKIPPED, 0 FAILED

---
Alexis Lothoré (eBPF Foundation) (3):
      selftests/bpf: fix bpf_map_redirect call for cpu map test
      selftests/bpf: make xdp_cpumap_attach keep redirect prog attached
      selftests/bpf: check program redirect in xdp_cpumap_attach

 .../selftests/bpf/prog_tests/xdp_cpumap_attach.c   | 130 +++++++++++++++++++--
 .../bpf/progs/test_xdp_with_cpumap_helpers.c       |   7 +-
 2 files changed, 129 insertions(+), 8 deletions(-)
---
base-commit: 058d7c3d1691e2e4a4963716ec6c047dff778637
change-id: 20240730-convert_xdp_tests-ccd66bfe33db

Best regards,
-- 
Alexis Lothoré, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-11 11:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-09 10:12 [PATCH bpf-next v3 0/3] selftests/bpf: add coverage for xdp_features in test_progs Alexis Lothoré (eBPF Foundation)
2024-10-09 10:12 ` [PATCH bpf-next v3 1/3] selftests/bpf: fix bpf_map_redirect call for cpu map test Alexis Lothoré (eBPF Foundation)
2024-10-09 10:12 ` [PATCH bpf-next v3 2/3] selftests/bpf: make xdp_cpumap_attach keep redirect prog attached Alexis Lothoré (eBPF Foundation)
2024-10-11  1:23   ` Martin KaFai Lau
2024-10-11 11:50     ` Alexis Lothoré
2024-10-09 10:12 ` [PATCH bpf-next v3 3/3] selftests/bpf: check program redirect in xdp_cpumap_attach Alexis Lothoré (eBPF Foundation)
2024-10-11  1:10 ` [PATCH bpf-next v3 0/3] selftests/bpf: add coverage for xdp_features in test_progs patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox