]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: add rm_list_tx in mptcp_pm_data
authorGeliang Tang <geliangtang@gmail.com>
Sat, 13 Mar 2021 01:16:12 +0000 (17:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Mar 2021 01:47:45 +0000 (17:47 -0800)
commitfb53f5dbf7f1bc0f2c4a7fb8af3f434fe4096493
treeb24909eb72a82f7a234ca79f853dcca567755bdd
parent2f9cee72bb7425e8900d78a17d09b324bd4558b5
mptcp: add rm_list_tx in mptcp_pm_data

This patch added a new member rm_list_tx for struct mptcp_pm_data as the
removing address list on the outgoing direction. Initialize its nr field
to zero in mptcp_pm_data_init.

In mptcp_pm_remove_anno_addr, put the single address id into an removing
list, and passed it to mptcp_pm_remove_addr.

In mptcp_pm_remove_addr, save the input rm_list to rm_list_tx in struct
mptcp_pm_data.

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.c
net/mptcp/pm_netlink.c
net/mptcp/protocol.h