mptcp: remove multi addresses in PM
authorGeliang Tang <geliangtang@gmail.com>
Sat, 13 Mar 2021 01:16:15 +0000 (17:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Mar 2021 01:47:45 +0000 (17:47 -0800)
commitd0b698ca9a27e90b641804fc2fb49ae3719c0904
tree12ca62dea0037b3ac849193051f04038fe0f6e8a
parentb5c55f334c7f75b59b2d14be0abb7c827a016059
mptcp: remove multi addresses in PM

This patch dropped the member rm_id of struct mptcp_pm_data. Use
rm_list_rx in mptcp_pm_nl_rm_addr_received instead of using rm_id.

In mptcp_pm_nl_rm_addr_received, iterated each address id from
pm.rm_list_rx, then shut down and closed each address id's subsocket.

Signed-off-by: Geliang Tang <geliangtang@gmail.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
net/mptcp/protocol.h