forked from multipath-tcp/mptcp_net-next
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mptcp: add netlink pm addr entry refcount
This patch adds the refcount of address entry in netlink PM. Initiate 'refcont' of every address entry to 1. Increase this refcount counter when a subflow connecting or an address signaling in mptcp_pm_nl_add_addr_doit(), fill_local_addresses_vec() and mptcp_pm_create_subflow_or_signal_addr(). Decrease it when deleting an address in mptcp_pm_nl_del_addr_doit(). When the counter reaches 1, then free this entry. Signed-off-by: Geliang Tang <geliang.tang@suse.com>
- Loading branch information
1 parent
f23850b
commit b28b6be
Showing
1 changed file
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters