]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mptcp: sched: reduce size for unused data
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Fri, 21 Feb 2025 15:44:02 +0000 (16:44 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Feb 2025 02:23:44 +0000 (18:23 -0800)
commitb68b106b0f15424db6c78d8c1a0616f698080b9d
tree129836a65cddba36324b4608266c63d28c46119a
parent9771a96a7a35daa2220cc4f170b840b34af28b2c
mptcp: sched: reduce size for unused data

Thanks for the previous commit ("mptcp: sched: split get_subflow
interface into two"), the mptcp_sched_data structure is now currently
unused.

This structure has been added to allow future extensions that are not
ready yet. At the end, this structure will not even be used at all when
mptcp_subflow bpf_iter will be supported [1].

Here is a first step to save 64 bytes on the stack for each scheduling
operation. The structure is not removed yet not to break the WIP work on
these extensions, but will be done when [1] will be ready and applied.

Link: https://lore.kernel.org/6645ad6e-8874-44c5-8730-854c30673218@linux.dev
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250221-net-next-mptcp-pm-misc-cleanup-3-v1-9-2b70ab1cee79@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/sched.c