Commit 37fdbeb0 authored by Yajun Deng's avatar Yajun Deng Committed by Greg Kroah-Hartman
Browse files

net: net_namespace: Optimize the code



[ Upstream commit 41467d2f ]

There is only one caller for ops_free(), so inline it.
Separate net_drop_ns() and net_free(), so the net_free()
can be called directly.
Add free_exit_list() helper function for free net_exit_list.

====================
v2:
 - v1 does not apply, rebase it.
====================

Signed-off-by: default avatarYajun Deng <yajun.deng@linux.dev>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Stable-dep-of: 46841c70 ("gtp: Use for_each_netdev_rcu() in gtp_genl_dump_pdp().")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent bb36838d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment