]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: allow changing the 'backup' bit when no sockets are open
authorDavide Caratti <dcaratti@redhat.com>
Fri, 24 Sep 2021 00:04:12 +0000 (17:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Sep 2021 09:51:36 +0000 (10:51 +0100)
commit897a54473bc0f9c982029da401376a488d7e1744
treea1e2bb0197e0a7f9cb73cb59deff9c434aedd6d0
parenta577ed15e630a87d92fb6f62c92a63f0e494a031
mptcp: allow changing the 'backup' bit when no sockets are open

current Linux refuses to change the 'backup' bit of MPTCP endpoints, i.e.
using MPTCP_PM_CMD_SET_FLAGS, unless it finds (at least) one subflow that
matches the endpoint address. There is no reason for that, so we can just
ignore the return value of mptcp_nl_addr_backup(). In this way, endpoints
can reconfigure their 'backup' flag even if no MPTCP sockets are open (or
more generally, in case the MP_PRIO message is not sent out).

Fixes: 6a6ac942f8f8 ("mptcp: add set_flags command in PM netlink")
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/pm_netlink.c