mptcp: userspace pm allow creating id 0 subflow
authorGeliang Tang <geliang.tang@suse.com>
Wed, 4 Oct 2023 20:38:12 +0000 (13:38 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Oct 2023 16:34:32 +0000 (09:34 -0700)
commite5ed101a602873d65d2d64edaba93e8c73ec1b0f
treefcd882ce165fdc5429cf3f03b8c7720046a26e31
parenta5efdbcece83af94180e8d7c0a6e22947318499d
mptcp: userspace pm allow creating id 0 subflow

This patch drops id 0 limitation in mptcp_nl_cmd_sf_create() to allow
creating additional subflows with the local addr ID 0.

There is no reason not to allow additional subflows from this local
address: we should be able to create new subflows from the initial
endpoint. This limitation was breaking fullmesh support from userspace.

Fixes: 702c2f646d42 ("mptcp: netlink: allow userspace-driven subflow establishment")
Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/391
Cc: stable@vger.kernel.org
Suggested-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <martineau@kernel.org>
Link: https://lore.kernel.org/r/20231004-send-net-20231004-v1-2-28de4ac663ae@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/pm_userspace.c