From: Geliang Tang <geliang@kernel.org>
To: mptcp@lists.linux.dev
Cc: Geliang Tang <tanggeliang@kylinos.cn>
Subject: [PATCH mptcp-next v7 0/7] add mptcp_subflow bpf_iter
Date: Tue, 1 Oct 2024 14:47:07 +0800 [thread overview]
Message-ID: <cover.1727764822.git.tanggeliang@kylinos.cn> (raw)
From: Geliang Tang <tanggeliang@kylinos.cn>
v7:
- As Martin recently replied, mptcp_stubflow bpf_iter can still be
used in tracing. So go back to the tracing selftest.
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 them 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 (7):
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
Squash to "selftests/bpf: Add bpf scheduler test"
selftests/bpf: Add mptcp_subflow bpf_iter subtest
net/mptcp/bpf.c | 81 ++++++++++-
.../testing/selftests/bpf/bpf_experimental.h | 7 +
.../testing/selftests/bpf/prog_tests/mptcp.c | 126 +++++++++++++++++-
tools/testing/selftests/bpf/progs/mptcp_bpf.h | 4 +
.../selftests/bpf/progs/mptcp_bpf_iter.c | 39 ++++++
5 files changed, 245 insertions(+), 12 deletions(-)
create mode 100644 tools/testing/selftests/bpf/progs/mptcp_bpf_iter.c
--
2.43.0
next reply other threads:[~2024-10-01 6:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-01 6:47 Geliang Tang [this message]
2024-10-01 6:47 ` [PATCH mptcp-next v7 1/7] bpf: Register mptcp common kfunc set Geliang Tang
2024-10-01 6:47 ` [PATCH mptcp-next v7 2/7] bpf: Add mptcp_subflow bpf_iter Geliang Tang
2024-10-01 6:47 ` [PATCH mptcp-next v7 3/7] bpf: Add mptcp_sock acquire and release helpers Geliang Tang
2024-10-01 6:47 ` [PATCH mptcp-next v7 4/7] selftests/bpf: Add mptcp_subflow bpf_iter test prog Geliang Tang
2024-10-01 6:47 ` [PATCH mptcp-next v7 5/7] selftests/bpf: More endpoints for endpoint_init Geliang Tang
2024-10-01 6:47 ` [PATCH mptcp-next v7 6/7] Squash to "selftests/bpf: Add bpf scheduler test" Geliang Tang
2024-10-01 6:47 ` [PATCH mptcp-next v7 7/7] selftests/bpf: Add mptcp_subflow bpf_iter subtest Geliang Tang
2024-10-01 7:11 ` [PATCH mptcp-next v7 0/7] add mptcp_subflow bpf_iter MPTCP CI
2024-10-01 7:59 ` MPTCP CI
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1727764822.git.tanggeliang@kylinos.cn \
--to=geliang@kernel.org \
--cc=mptcp@lists.linux.dev \
--cc=tanggeliang@kylinos.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.