mptcp: remove address when netlink flushes addrs
authorGeliang Tang <geliangtang@gmail.com>
Thu, 10 Dec 2020 22:24:59 +0000 (14:24 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Dec 2020 01:30:06 +0000 (17:30 -0800)
commit141694df6573b49aa4143c92556544b4b0bbda72
treed41f8cd8ef1b8f94ffa1673c49228f6e52541682
parent3764b0c5651e34ceb3e7d5c75b6fd8e7b72112ac
mptcp: remove address when netlink flushes addrs

When the PM netlink flushes the addresses, invoke the remove address
function mptcp_nl_remove_subflow_and_signal_addr to remove the addresses
and the subflows. Since this function should not be invoked under lock,
move __flush_addrs out of the pernet->lock.

Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Geliang Tang <geliangtang@gmail.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