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

Hoyeon Lee posted 2 patches 1 week, 3 days ago
.../selftests/bpf/prog_tests/cls_redirect.c   | 122 ++++++------------
.../bpf/prog_tests/select_reuseport.c         |  67 +++++-----
2 files changed, 77 insertions(+), 112 deletions(-)
[PATCH bpf-next v2 0/2] selftests/bpf: networking test cleanups
Posted by Hoyeon Lee 1 week, 3 days ago
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(-)

-- 
2.51.1
Re: [PATCH bpf-next v2 0/2] selftests/bpf: networking test cleanups
Posted by Martin KaFai Lau 1 week, 3 days ago

On 11/21/25 12:13 AM, Hoyeon Lee wrote:
> 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.

I added Amery's Reviewed-by. Please keep the tag in the future when the 
newer revision doesn't have major changes.

Applied. Thanks.