aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorGeliang Tang <[email protected]>2024-12-13 19:52:56 +0000
committerJakub Kicinski <[email protected]>2024-12-15 22:28:34 +0000
commit88d0973163711a5313ddd479a1ff543b5ac93d51 (patch)
tree7d5fcfed9c8754d53c24fa8f2bdd4a27048a058f /net/unix/unix_bpf.c
parentmptcp: move mptcp_pm_remove_addrs into pm_userspace (diff)
downloadkernel-88d0973163711a5313ddd479a1ff543b5ac93d51.tar.gz
kernel-88d0973163711a5313ddd479a1ff543b5ac93d51.zip
mptcp: drop free_list for deleting entries
mptcp_pm_remove_addrs() actually only deletes one address, which does not match its name. This patch renames it to mptcp_pm_remove_addr_entry() and changes the parameter "rm_list" to "entry". With the help of mptcp_pm_remove_addr_entry(), it's no longer necessary to move the entry to be deleted to free_list and then traverse the list to delete the entry, which is not allowed in BPF. The entry can be directly deleted through list_del_rcu() and sock_kfree_s() now. Signed-off-by: Geliang Tang <[email protected]> Reviewed-by: Matthieu Baerts (NGI0) <[email protected]> Signed-off-by: Matthieu Baerts (NGI0) <[email protected]> Link: https://patch.msgid.link/20241213-net-next-mptcp-pm-misc-cleanup-v1-5-ddb6d00109a8@kernel.org Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions