Squash to "Add mptcp_subflow bpf_iter support"
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest posting 2/25 patches 8 repliesIn review
- v4 posting 2/25 patches 7 repliesSuperseded
- v3 posting 2/25 patches 4 repliesSuperseded
Earlier versions · 6
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 posting 2/2 | 5 patches | 4 replies | Superseded | |
| v5 posting 1/2 | 5 patches | 3 replies | Superseded | |
| v4 posting 1/2 | 5 patches | 7 replies | Superseded | |
| v3 posting 1/2 | 5 patches | 2 replies | Superseded | |
| v2 posting 1/2 | 3 patches | 4 replies | Superseded | |
| v1 | 3 patches | 2 replies | Superseded |
Changes in v5 from the cover letter
- check bpf_iter_task in mptcp_subflow_new() as Mat suggested.
Patches in v5 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | mptcp: add bpf_iter_task for mptcp_socknet/ net/ | +17 | 0 replies | |
| 2/5 | Squash to "bpf: Extend bpf_skc_to_mptcp_sock to MPTCP sock"net/ | +12 | 4 replies | |
| 3/5 | Squash to "bpf: Add mptcp_subflow bpf_iter"net/ | +15 | 2 replies | |
| 4/5 | Revert "bpf: Acquire and release mptcp socket"net/ | +0 | 0 replies | |
| 5/5 | Squash to "selftests/bpf: Add mptcp_subflow bpf_iter subtest"tools/ tools/ tools/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.
Cover letter [PATCH mptcp-next v5 0/5] Squash to "Add mptcp_subflow bpf_iter support"
From: Geliang Tang <[email protected]>
v5:
- check bpf_iter_task in mptcp_subflow_new() as Mat suggested.
v4:
- drop sock_owned_by_user_nocheck and spin_is_locked. According to comments from Mat and Martin, in this set mptcp_subflow bpf_iter only used from a cg sockopt bpf prog, no need to add these check at this moment.
v3:
- patch 3, continue to use sock_owned_by_user_nocheck() and spin_is_locked()
checks instead of using msk_owned_by_me().
- patch 5, drop declaration of bpf_mptcp_subflow_tcp_sock. It's no longer
used.
- patch 5, update the comment for mptcp_subflow_tcp_sock(), which is a BPF
helper, not a kfunc.
The commit log of "bpf: Register mptcp common kfunc set" doesn't match the code, please update it as:
'''
bpf: Register mptcp common kfunc set
MPTCP helper mptcp_subflow_ctx() is used to convert struct sock to struct mptcp_subflow_context. It will be used in MPTCP BPF programs.
This patch defines corresponding wrapper of this helper, and put it into the newly defined mptcp common kfunc set and register this set with the flag BPF_PROG_TYPE_CGROUP_SOCKOPT to let it accessible to the 'cgroup/getsockopt' type of BPF programs.
'''
v2:
- Drop bpf_skc_to_mptcp_sock
- Check the owner before assigning the msk as Mat suggested.
- Use bpf_core_cast() in mptcp_subflow bpf_iter subtest instead of
using bpf_skc_to_mptcp_sock().
Address Martin's suggestions for "Add mptcp_subflow bpf_iter support" v2.
Geliang Tang (5):
mptcp: add bpf_iter_task for mptcp_sock
Squash to "bpf: Extend bpf_skc_to_mptcp_sock to MPTCP sock" Squash to "bpf: Add mptcp_subflow bpf_iter"
Revert "bpf: Acquire and release mptcp socket" Squash to "selftests/bpf: Add mptcp_subflow bpf_iter subtest"
net/mptcp/bpf.c | 56 +++++++++---------- net/mptcp/protocol.c | 1 + net/mptcp/protocol.h | 16 ++++++ .../testing/selftests/bpf/bpf_experimental.h | 2 +- tools/testing/selftests/bpf/progs/mptcp_bpf.h | 5 -- .../selftests/bpf/progs/mptcp_bpf_iters.c | 8 +-- 6 files changed, 47 insertions(+), 41 deletions(-)
Signature · 1 line
2.43.0