From: Geliang Tang <tanggeliang@kylinos.cn>
v4:
- patch 3, use spin_is_locked() instead of lockdep_assert_held().
- patch 5, use ipv4_is_private_10() for the selftests instead of using
ipv6_addr_v4mapped().
v3:
- rename mptcp_address to mptcp_userspace_pm_addr as I mentioned in [1].
- rebased.
[1]
https://patchwork.kernel.org/project/mptcp/patch/b6b53fd730a0edd0024963468d078488ad5e67aa.1729588019.git.tanggeliang@kylinos.cn/
v2:
- squash patches 5,6 of v1 into one.
- patch 3, use lockdep_assert_held instead of spin_is_locked.
- update patch 5 to make it run normally in btf-debug mode.
Another bpf_iter for BPF path manager to traverse all address entries
on userspace_pm_local_addr_list of an MPTCP socket is added in this set.
Userspace pm tool is needed by the self test, so add pm_nl_ctl link in
patch 1.
Geliang Tang (5):
selftests/bpf: Add mptcp pm_nl_ctl link
selftests/bpf: Use pm_nl_ctl if ip mptcp not supported
bpf: Add mptcp_userspace_pm_addr bpf_iter
bpf: Export more helpers for mptcp_userspace_pm_addr test
selftests/bpf: Add mptcp_userspace_pm_addr bpf_iter subtest
MAINTAINERS | 1 +
net/mptcp/bpf.c | 70 ++++++
tools/testing/selftests/bpf/Makefile | 4 +-
.../testing/selftests/bpf/bpf_experimental.h | 8 +
tools/testing/selftests/bpf/mptcp_pm_nl_ctl.c | 1 +
.../testing/selftests/bpf/prog_tests/mptcp.c | 235 +++++++++++++++++-
tools/testing/selftests/bpf/progs/mptcp_bpf.h | 5 +
.../selftests/bpf/progs/mptcp_bpf_iters.c | 38 +++
8 files changed, 353 insertions(+), 9 deletions(-)
create mode 120000 tools/testing/selftests/bpf/mptcp_pm_nl_ctl.c
--
2.45.2