Skip to content

Commit

Permalink
mptcp: allow creating id 0 subflow
Browse files Browse the repository at this point in the history
This patch drops id 0 limitation in mptcp_nl_cmd_sf_create() to allow
creating additional subflows with the local addr ID 0.

Fixes: 702c2f6 ("mptcp: netlink: allow userspace-driven subflow establishment")
Closes: multipath-tcp/mptcp_net-next#391
Suggested-by: Matthieu Baerts <[email protected]>
Signed-off-by: Geliang Tang <[email protected]>
  • Loading branch information
geliangtang authored and intel-lab-lkp committed Aug 9, 2023
1 parent 6d8c3b7 commit 87ced2e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions net/mptcp/pm_userspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,6 @@ int mptcp_nl_cmd_sf_create(struct sk_buff *skb, struct genl_info *info)
goto create_err;
}

if (addr_l.id == 0) {
NL_SET_ERR_MSG_ATTR(info->extack, laddr, "missing local addr id");
err = -EINVAL;
goto create_err;
}

err = mptcp_pm_parse_addr(raddr, info, &addr_r);
if (err < 0) {
NL_SET_ERR_MSG_ATTR(info->extack, raddr, "error parsing remote addr");
Expand Down

0 comments on commit 87ced2e

Please sign in to comment.