1
linux/net/l2tp
James Chapman 1f4c3dce91 l2tp: use get_next APIs for management requests and procfs/debugfs
l2tp netlink and procfs/debugfs iterate over tunnel and session lists
to obtain data. They currently use very inefficient get_nth functions
to do so. Replace these with get_next.

For netlink, use nl cb->ctx[] for passing state instead of the
obsolete cb->args[].

l2tp_tunnel_get_nth and l2tp_session_get_nth are no longer used so
they can be removed.

Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-08-11 04:38:49 +01:00
..
Kconfig
l2tp_core.c l2tp: use get_next APIs for management requests and procfs/debugfs 2024-08-11 04:38:49 +01:00
l2tp_core.h l2tp: use get_next APIs for management requests and procfs/debugfs 2024-08-11 04:38:49 +01:00
l2tp_debugfs.c l2tp: use get_next APIs for management requests and procfs/debugfs 2024-08-11 04:38:49 +01:00
l2tp_eth.c l2tp: cleanup eth/ppp pseudowire setup code 2024-07-31 09:25:13 +01:00
l2tp_ip6.c l2tp: move l2tp_ip and l2tp_ip6 data to pernet 2024-08-11 04:38:49 +01:00
l2tp_ip.c l2tp: move l2tp_ip and l2tp_ip6 data to pernet 2024-08-11 04:38:49 +01:00
l2tp_netlink.c l2tp: use get_next APIs for management requests and procfs/debugfs 2024-08-11 04:38:49 +01:00
l2tp_ppp.c l2tp: use get_next APIs for management requests and procfs/debugfs 2024-08-11 04:38:49 +01:00
Makefile l2tp: add tracepoint infrastructure to core 2020-08-22 12:44:37 -07:00
trace.h