Skip to content

selftests/bpf: networking test cleanups

Hoyeon Lee bpf linux-kselftest lkml 2 versions – Applied

Status from this message: Applied. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied 2/2
  2. v15 patches 6 repliesSuperseded 2 of 5 applied

Changes in v2 from the cover letter

- Drop the tuple wrapper entirely in cls_redirect and rely on ss_family
- Limit the series to patches 1/2 (3/4 applied; 5 sent separately)

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2selftests/bpf: use sockaddr_storage directly in cls_redirect testtools/testing/selftests/bpf/prog_tests/cls_redirect.c+43 -790 repliesApplied
2/2selftests/bpf: use sockaddr_storage instead of sa46 in select_reuseport testtools/testing/selftests/bpf/prog_tests/select_reuseport.c+34 -330 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH bpf-next v2 0/2] selftests/bpf: networking test cleanups

This series finishes the sockaddr_storage migration in the networking selftests by removing the remaining open-coded IPv4/IPv6 wrappers (addr_port/tuple in cls_redirect, sa46 in select_reuseport). The tests now use sockaddr_storage directly. No other custom socket-address wrappers remain after this series, so the churn stops here and behavior is unchanged.

---
Changes in v2:
- Drop the tuple wrapper entirely in cls_redirect and rely on ss_family
- Limit the series to patches 1/2 (3/4 applied; 5 sent separately)

Hoyeon Lee (2):
selftests/bpf: use sockaddr_storage directly in cls_redirect test selftests/bpf: use sockaddr_storage instead of sa46 in
select_reuseport test

 .../selftests/bpf/prog_tests/cls_redirect.c   | 122 ++++++------------
 .../bpf/prog_tests/select_reuseport.c         |  67 +++++-----
 2 files changed, 77 insertions(+), 112 deletions(-)
Signature · 1 line
2.51.1