From: Geliang Tang <geliang.tang@suse.com>
To: mptcp@lists.linux.dev
Cc: Geliang Tang <geliang.tang@suse.com>
Subject: [PATCH mptcp-next] Squash to "mptcp: register default scheduler"
Date: Sat, 8 Oct 2022 12:00:15 +0800 [thread overview]
Message-ID: <20221008040015.21176-1-geliang.tang@suse.com> (raw)
Set the default scheduler when the input parameter sched of
mptcp_init_sched is NULL.
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
---
net/mptcp/sched.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/net/mptcp/sched.c b/net/mptcp/sched.c
index 7b697fb154ae..1174fec7928e 100644
--- a/net/mptcp/sched.c
+++ b/net/mptcp/sched.c
@@ -94,7 +94,7 @@ int mptcp_init_sched(struct mptcp_sock *msk,
struct mptcp_sched_ops *sched)
{
if (!sched)
- goto out;
+ sched = &mptcp_sched_default;
if (!bpf_try_module_get(sched, sched->owner))
return -EBUSY;
@@ -106,7 +106,6 @@ int mptcp_init_sched(struct mptcp_sock *msk,
pr_debug("sched=%s", msk->sched->name);
-out:
return 0;
}
--
2.35.3
next reply other threads:[~2022-10-08 3:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-08 4:00 Geliang Tang [this message]
2022-10-08 4:09 ` Squash to "mptcp: register default scheduler": Tests Results MPTCP CI
2022-10-08 4:10 ` Squash to "mptcp: register default scheduler": Build Failure MPTCP CI
2022-10-08 5:17 ` [PATCH mptcp-next] Squash to "mptcp: register default scheduler" kernel test robot
2022-10-08 6:24 ` kernel test robot
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=20221008040015.21176-1-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox