aboutsummaryrefslogtreecommitdiffstats
path: root/net/l2tp/l2tp_netlink.c
diff options
context:
space:
mode:
authorTom Parkin <tparkin@katalix.com>2020-07-28 18:20:29 +0100
committerDavid S. Miller <davem@davemloft.net>2020-07-30 16:45:31 -0700
commit52016e259bab98613453e29d42f2ffe456feee11 (patch)
treefc906ef696ccdd6b4f2783c22eabb581d04a2327 /net/l2tp/l2tp_netlink.c
parentl2tp: don't export __l2tp_session_unhash (diff)
downloadlinux-dev-52016e259bab98613453e29d42f2ffe456feee11.tar.xz
linux-dev-52016e259bab98613453e29d42f2ffe456feee11.zip
l2tp: don't export tunnel and session free functions
Tunnel and session instances are reference counted, and shouldn't be directly freed by pseudowire code. Rather than exporting l2tp_tunnel_free and l2tp_session_free, make them private to l2tp_core.c, and export the refcount functions instead. In order to do this, the refcount functions cannot be declared as inline. Since the codepaths which take and drop tunnel and session references are not directly in the datapath this shouldn't cause performance issues. Signed-off-by: Tom Parkin <tparkin@katalix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp/l2tp_netlink.c')
0 files changed, 0 insertions, 0 deletions