diff options
author | Geliang Tang <geliang.tang@suse.com> | 2023-08-21 15:25:17 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-08-22 17:31:19 -0700 |
commit | fce68b03086fd00eb5a8ba4744f36f0d007d0f9d (patch) | |
tree | 2f182728bcfed089746f415b83f44aec943a783d /net/mptcp/sched.c | |
parent | 1730b2b2c5a5a886007b247366aebe0976dc8881 (diff) | |
download | lwn-fce68b03086fd00eb5a8ba4744f36f0d007d0f9d.tar.gz lwn-fce68b03086fd00eb5a8ba4744f36f0d007d0f9d.zip |
mptcp: add scheduled in mptcp_subflow_context
This patch adds a new member scheduled in struct mptcp_subflow_context,
which will be set in the MPTCP scheduler context when the scheduler
picks this subflow to send data.
Add a new helper mptcp_subflow_set_scheduled() to set this flag using
WRITE_ONCE().
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <martineau@kernel.org>
Link: https://lore.kernel.org/r/20230821-upstream-net-next-20230818-v1-6-0c860fb256a8@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mptcp/sched.c')
-rw-r--r-- | net/mptcp/sched.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mptcp/sched.c b/net/mptcp/sched.c index 53773668b5ee..d295b92a5789 100644 --- a/net/mptcp/sched.c +++ b/net/mptcp/sched.c @@ -87,3 +87,9 @@ void mptcp_release_sched(struct mptcp_sock *msk) bpf_module_put(sched, sched->owner); } + +void mptcp_subflow_set_scheduled(struct mptcp_subflow_context *subflow, + bool scheduled) +{ + WRITE_ONCE(subflow->scheduled, scheduled); +} |