mptcp: Add a per-namespace sysctl to set the default path manager type
authorMat Martineau <mathew.j.martineau@linux.intel.com>
Wed, 27 Apr 2022 22:50:01 +0000 (15:50 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Apr 2022 00:25:14 +0000 (17:25 -0700)
commit6bb63ccc25d4a8cb8fe48efeda680cb13f84d1b0
tree27a07b92bb40e431961f8ea6cb58b35e984fc353
parent6961326e38fe571ac1d2180041ce3142c8fd24d5
mptcp: Add a per-namespace sysctl to set the default path manager type

The new net.mptcp.pm_type sysctl determines which path manager will be
used by each newly-created MPTCP socket.

v2: Handle builds without CONFIG_SYSCTL
v3: Clarify logic for type-specific PM init (Geliang Tang and Paolo Abeni)

Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/mptcp-sysctl.rst
net/mptcp/ctrl.c
net/mptcp/pm.c
net/mptcp/protocol.h