From: Geliang Tang <tanggeliang@kylinos.cn>
v6:
- add KF_TRUSTED_ARGS flag in patch 2 (Andrii, Martin), then acquire
and release helpers (patch 3) are needed to be implemented.
- test mptcp_subflow bpf_iter in "cgroup/getsockopt" (patch 5),
instead of testing then in "tracing" (Martin).
v5:
- update patch 1 as Andrii suggested: if msk is NULL, initialize
kit->msk to NULL in _new() and check it in _next().
v4:
- squash patch 1/5 and 3/5 in v3 together as Matt suggested.
- a new squash-to patch to drop mptcp_subflow_active declaration in
bpf_burst.
v3:
- drop bpf_iter__mptcp_subflow, __diag_push, __diag_pop and
__diag_ignore_all
- drop declarations for bpf kfuncs
v2:
- update patch 1 as Martin and Andrii suggested.
- fix warnings and errors reported by MPTCP CI.
This patch set adds a mptcp_subflow type bpf_iter, and self tests.
Geliang Tang (10):
bpf: Register mptcp common kfunc set
bpf: Add mptcp_subflow bpf_iter
bpf: Add mptcp_sock acquire and release helpers
selftests/bpf: Add mptcp_subflow bpf_iter test prog
selftests/bpf: More endpoints for endpoint_init
selftests/bpf: Add mptcp_subflow bpf_iter subtest
Squash to "selftests/bpf: Add bpf scheduler test"
Squash to "mptcp: add sched_data helpers"
Squash to "bpf: Export more bpf_burst related functions"
Squash to "selftests/bpf: Add bpf_burst scheduler & test"
net/mptcp/bpf.c | 85 +++++++++++-
net/mptcp/protocol.h | 3 -
.../testing/selftests/bpf/bpf_experimental.h | 7 +
.../testing/selftests/bpf/prog_tests/mptcp.c | 122 +++++++++++++++++-
tools/testing/selftests/bpf/progs/mptcp_bpf.h | 6 +
.../selftests/bpf/progs/mptcp_bpf_burst.c | 1 -
.../selftests/bpf/progs/mptcp_bpf_iter.c | 46 +++++++
7 files changed, 255 insertions(+), 15 deletions(-)
create mode 100644 tools/testing/selftests/bpf/progs/mptcp_bpf_iter.c
--
2.43.0