add mptcp_address bpf_iter
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest5 patches 2 repliesIn review
- v45 patches 4 repliesSuperseded
- v35 patches 2 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 5 patches | 2 replies | Superseded | |
| v1 | 6 patches | 2 replies | Superseded |
Changes in v5 from the cover letter
- use "struct sock *sk" instead of "struct mptcp-sock *msk" as the
argument of bpf_iter_mptcp_userspace_pm_addr_new() in patch 3.
- update patch 5.
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | selftests/bpf: Add mptcp pm_nl_ctl linkMAINTAINERS tools/ tools/ | +5 | 0 replies | |
| 2/5 | selftests/bpf: Use pm_nl_ctl if ip mptcp not supportedtools/ | +13 | 0 replies | |
| 3/5 | bpf: Add mptcp_userspace_pm_addr bpf_iternet/ | +54 | 0 replies | |
| 4/5 | bpf: Export more helpers for mptcp_userspace_pm_addr testnet/ | +18 | 0 replies | |
| 5/5 | selftests/bpf: Add mptcp_userspace_pm_addr bpf_iter subtesttools/ tools/ tools/ +1 more | +261 | 0 replies |
Reviews trailers per patch
1 of 5 patches has a Reviewed-by or Acked-by.
| Patch | Matthieu Baerts (NGI0) |
|---|---|
| 1/5 | R-b |
| 2/5 | |
| 3/5 | |
| 4/5 | |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH mptcp-next v5 0/5] add mptcp_address bpf_iter
From: Geliang Tang <[email protected]>
v5:
- use "struct sock *sk" instead of "struct mptcp-sock *msk" as the
argument of bpf_iter_mptcp_userspace_pm_addr_new() in patch 3.
- update patch 5.
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.
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 | 72 ++++++ 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 | 34 +++ 8 files changed, 351 insertions(+), 9 deletions(-) create mode 120000 tools/testing/selftests/bpf/mptcp_pm_nl_ctl.c
Signature · 1 line
2.43.0