]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mptcp: sched: split validation part
authorGeliang Tang <tanggeliang@kylinos.cn>
Sun, 13 Apr 2025 09:34:33 +0000 (11:34 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 15:21:46 +0000 (08:21 -0700)
commit760ff076695cfaff3ab8fcb0bae33c8b4158818d
tree705842863485f1c1f50e8c129c0b9962d3db8a24
parent6e83166dd8003e8611f253426b85e0c3d933e1c2
mptcp: sched: split validation part

A new interface .validate has been added in struct bpf_struct_ops
recently. This patch prepares a future struct_ops support by
implementing it as a new helper mptcp_validate_scheduler() for struct
mptcp_sched_ops.

In this helper, check whether the required ops "get_subflow" of struct
mptcp_sched_ops has been implemented.

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250413-net-next-mptcp-sched-mib-sft-misc-v2-2-0f83a4350150@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.h
net/mptcp/sched.c