]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: allow to use port and non-signal in set_flags
authorGeliang Tang <geliang.tang@suse.com>
Sat, 5 Feb 2022 00:03:29 +0000 (16:03 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 5 Feb 2022 04:30:23 +0000 (20:30 -0800)
commit0d52ce575c52668008efd69669341610d30910c1
tree31f795210b45462d2001101b22d9256646f95793
parent66903d53f3aafe20a5774bb2756cc1c0b0eb44d0
mptcp: allow to use port and non-signal in set_flags

It's illegal to use both port and non-signal flags for adding address.
But it's legal to use both of them for setting flags, which always uses
non-signal flags, backup or fullmesh.

This patch moves this non-signal flag with port check from
mptcp_pm_parse_addr() to mptcp_nl_cmd_add_addr(). Do the check only when
adding addresses, not setting flags or deleting addresses.

Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/pm_netlink.c