Skip to content

Commit e5ed101

Browse files
geliangtangkuba-moo
authored andcommitted
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: 702c2f6 ("mptcp: netlink: allow userspace-driven subflow establishment") Closes: multipath-tcp/mptcp_net-next#391 Cc: [email protected] Suggested-by: Matthieu Baerts <[email protected]> Reviewed-by: Matthieu Baerts <[email protected]> Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Mat Martineau <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent a5efdbc commit e5ed101

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

net/mptcp/pm_userspace.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,6 @@ int mptcp_nl_cmd_sf_create(struct sk_buff *skb, struct genl_info *info)
307307
goto create_err;
308308
}
309309

310-
if (addr_l.id == 0) {
311-
NL_SET_ERR_MSG_ATTR(info->extack, laddr, "missing local addr id");
312-
err = -EINVAL;
313-
goto create_err;
314-
}
315-
316310
err = mptcp_pm_parse_addr(raddr, info, &addr_r);
317311
if (err < 0) {
318312
NL_SET_ERR_MSG_ATTR(info->extack, raddr, "error parsing remote addr");

0 commit comments

Comments
 (0)