diff options
author | Geliang Tang <geliang.tang@suse.com> | 2023-08-21 15:25:14 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-08-22 17:31:18 -0700 |
commit | 740ebe35bd3f5c4ff8ec60e5e521e47ea8f5492c (patch) | |
tree | d3b4665e6a4d9e6e4cb332667d446d12e090d54c /net/mptcp/Makefile | |
parent | mptcp: drop last_snd and MPTCP_RESET_SCHEDULER (diff) | |
download | linux-740ebe35bd3f5c4ff8ec60e5e521e47ea8f5492c.tar.gz linux-740ebe35bd3f5c4ff8ec60e5e521e47ea8f5492c.tar.bz2 linux-740ebe35bd3f5c4ff8ec60e5e521e47ea8f5492c.zip |
mptcp: add struct mptcp_sched_ops
This patch defines struct mptcp_sched_ops, which has three struct members,
name, owner and list, and four function pointers: init(), release() and
get_subflow().
The scheduler function get_subflow() have a struct mptcp_sched_data
parameter, which contains a reinject flag for retrans or not, a subflows
number and a mptcp_subflow_context array.
Add the scheduler registering, unregistering and finding functions to add,
delete and find a packet scheduler on the global list mptcp_sched_list.
Acked-by: Paolo Abeni <pabeni@redhat.com>
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-3-0c860fb256a8@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mptcp/Makefile')
-rw-r--r-- | net/mptcp/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mptcp/Makefile b/net/mptcp/Makefile index a3829ce548f9..84e531f86b82 100644 --- a/net/mptcp/Makefile +++ b/net/mptcp/Makefile @@ -2,7 +2,7 @@ obj-$(CONFIG_MPTCP) += mptcp.o mptcp-y := protocol.o subflow.o options.o token.o crypto.o ctrl.o pm.o diag.o \ - mib.o pm_netlink.o sockopt.o pm_userspace.o fastopen.o + mib.o pm_netlink.o sockopt.o pm_userspace.o fastopen.o sched.o obj-$(CONFIG_SYN_COOKIES) += syncookies.o obj-$(CONFIG_INET_MPTCP_DIAG) += mptcp_diag.o |