From: Geliang Tang <geliang.tang@suse.com>
To: mptcp@lists.linux.dev
Cc: Geliang Tang <geliang.tang@suse.com>
Subject: [PATCH mptcp-next v3 0/9] BPF packet scheduler updates part 4
Date: Mon, 4 Sep 2023 17:39:19 +0800 [thread overview]
Message-ID: <cover.1693820153.git.geliang.tang@suse.com> (raw)
v3:
- store burst in msk->snd_burst instead of in sk_storage.
- make mptcp_sched_data_set_contexts static.
- rename mptcp_subflow_ctx_by_pos to bpf_mptcp_subflow_ctx_by_pos, and
add "__bpf_kfunc" before it.
v2:
- keep sched API unchanged.
- use bpf_sk_storage_lookup to get snd_burst from BPF context.
- applied after "add bpf_stale scheduler v3" serise.
v1:
There's a bug in bpf_burst. snd_burst stored in mptcp_burst_storage in
BPF context is not used. msk->snd_burst is still used in kernel space.
To fix this, add two new interfaces in mptcp_sched_ops to get and set
scheduler's paramters from BPF context to kernel space.
Geliang Tang (9):
Squash to "bpf: Export more bpf_burst related functions"
Squash to "mptcp: add sched_data helpers"
Squash to "bpf: Add bpf_mptcp_sched_ops"
Squash to "selftests/bpf: Add mptcp sched structs"
Squash to "selftests/bpf: Add bpf_first scheduler"
Squash to "selftests/bpf: Add bpf_bkup scheduler"
Squash to "selftests/bpf: Add bpf_rr scheduler"
Squash to "selftests/bpf: Add bpf_red scheduler"
Squash to "selftests/bpf: Add bpf_burst scheduler"
net/mptcp/bpf.c | 41 +++++++++++----
net/mptcp/protocol.h | 6 +--
net/mptcp/sched.c | 50 ++++++++-----------
tools/testing/selftests/bpf/bpf_tcp_helpers.h | 5 +-
.../selftests/bpf/progs/mptcp_bpf_bkup.c | 6 +--
.../selftests/bpf/progs/mptcp_bpf_burst.c | 30 ++---------
.../selftests/bpf/progs/mptcp_bpf_first.c | 3 +-
.../selftests/bpf/progs/mptcp_bpf_red.c | 6 +--
.../selftests/bpf/progs/mptcp_bpf_rr.c | 9 ++--
9 files changed, 70 insertions(+), 86 deletions(-)
--
2.35.3
next reply other threads:[~2023-09-04 9:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-04 9:39 Geliang Tang [this message]
2023-09-04 9:39 ` [PATCH mptcp-next v3 1/9] Squash to "bpf: Export more bpf_burst related functions" Geliang Tang
2023-09-04 9:39 ` [PATCH mptcp-next v3 2/9] Squash to "mptcp: add sched_data helpers" Geliang Tang
2023-09-04 9:39 ` [PATCH mptcp-next v3 3/9] Squash to "bpf: Add bpf_mptcp_sched_ops" Geliang Tang
2023-09-04 9:39 ` [PATCH mptcp-next v3 4/9] Squash to "selftests/bpf: Add mptcp sched structs" Geliang Tang
2023-09-04 9:39 ` [PATCH mptcp-next v3 5/9] Squash to "selftests/bpf: Add bpf_first scheduler" Geliang Tang
2023-09-04 9:39 ` [PATCH mptcp-next v3 6/9] Squash to "selftests/bpf: Add bpf_bkup scheduler" Geliang Tang
2023-09-04 9:39 ` [PATCH mptcp-next v3 7/9] Squash to "selftests/bpf: Add bpf_rr scheduler" Geliang Tang
2023-09-04 9:39 ` [PATCH mptcp-next v3 8/9] Squash to "selftests/bpf: Add bpf_red scheduler" Geliang Tang
2023-09-04 9:39 ` [PATCH mptcp-next v3 9/9] Squash to "selftests/bpf: Add bpf_burst scheduler" Geliang Tang
2023-09-13 1:37 ` [PATCH mptcp-next v3 0/9] BPF packet scheduler updates part 4 Mat Martineau
2023-09-16 11:49 ` Matthieu Baerts
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.1693820153.git.geliang.tang@suse.com \
--to=geliang.tang@suse.com \
--cc=mptcp@lists.linux.dev \
/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.