mptcp: unify pm set_flags interfaces
authorGeliang Tang <geliang.tang@suse.com>
Thu, 8 Jun 2023 13:20:52 +0000 (15:20 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 10 Jun 2023 07:05:59 +0000 (00:05 -0700)
commit6ba7ce89905c5d5cdb4ff9ff7c763a6a1d31f48d
tree8d03f1a546f68545c53632a01ef78786be5f7b2e
parentf40be0db0b7680c2e9f0b1289788542813ba0f00
mptcp: unify pm set_flags interfaces

This patch unifies the three PM set_flags() interfaces:

mptcp_pm_nl_set_flags() in mptcp/pm_netlink.c for the in-kernel PM and
mptcp_userspace_pm_set_flags() in mptcp/pm_userspace.c for the
userspace PM.

They'll be switched in the common PM infterface mptcp_pm_set_flags() in
mptcp/pm.c based on whether token is NULL or not.

Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Reviewed-by: Larysa Zaremba <larysa.zaremba@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/pm.c
net/mptcp/pm_netlink.c
net/mptcp/protocol.h