Re: [PATCH net-next 07/12] mptcp: pm: register in-kernel and userspace PM

Simon Horman
2025-03-18T17:23:57Z

On Thu, Mar 13, 2025 at 11:20:56AM +0100, Matthieu Baerts (NGI0) wrote:
> From: Geliang Tang <tanggeliang@kylinos.cn>
>
> This patch defines the original in-kernel netlink path manager as a
> new struct mptcp_pm_ops named "mptcp_pm_kernel", and register it in
> mptcp_pm_kernel_register(). And define the userspace path manager as
> a new struct mptcp_pm_ops named "mptcp_pm_userspace", and register it
> in mptcp_pm_init().
>
> To ensure that there's always a valid path manager available, the default
> path manager "mptcp_pm_kernel" will be skipped in mptcp_pm_unregister().
>
> Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
> Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>

Reviewed-by: Simon Horman <horms@kernel.org>