aboutsummaryrefslogtreecommitdiffstats
path: root/net/l2tp/Kconfig
diff options
context:
space:
mode:
authorJames Chapman <jchapman@katalix.com>2010-04-02 02:19:33 -0400
committerDavid S. Miller <davem@davemloft.net>2010-04-03 17:56:07 -0400
commit0ad6614048cf722e4d27909665b4846805357f1b (patch)
tree182349ddf6e2b8e8478a5451cd0ed9684c14f0e8 /net/l2tp/Kconfig
parentd9e31d17ceba5f0736f5a34bbc236239cd42b420 (diff)
l2tp: Add debugfs files for dumping l2tp debug info
The existing pppol2tp driver exports debug info to /proc/net/pppol2tp. Rather than adding info to that file for the new functionality added in this patch series, we add new files in debugfs, leaving the old /proc file for backwards compatibility (L2TPv2 only). Currently only one file is provided: l2tp/tunnels, which lists internal debug info for all l2tp tunnels and sessions. More files may be added later. The info is for debug and problem analysis only - userspace apps should use netlink to obtain status about l2tp tunnels and sessions. Although debugfs does not support net namespaces, the tunnels and sessions dumped in l2tp/tunnels are only those in the net namespace of the process reading the file. Signed-off-by: James Chapman <jchapman@katalix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp/Kconfig')
-rw-r--r--net/l2tp/Kconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/net/l2tp/Kconfig b/net/l2tp/Kconfig
index a292270c0abe..4b1e71751e10 100644
--- a/net/l2tp/Kconfig
+++ b/net/l2tp/Kconfig
@@ -31,6 +31,19 @@ menuconfig L2TP
31 If you don't need L2TP, say N. To compile all L2TP code as 31 If you don't need L2TP, say N. To compile all L2TP code as
32 modules, choose M here. 32 modules, choose M here.
33 33
34config L2TP_DEBUGFS
35 tristate "L2TP debugfs support"
36 depends on L2TP && DEBUG_FS
37 help
38 Support for l2tp directory in debugfs filesystem. This may be
39 used to dump internal state of the l2tp drivers for problem
40 analysis.
41
42 If unsure, say 'Y'.
43
44 To compile this driver as a module, choose M here. The module
45 will be called l2tp_debugfs.
46
34config L2TP_V3 47config L2TP_V3
35 bool "L2TPv3 support (EXPERIMENTAL)" 48 bool "L2TPv3 support (EXPERIMENTAL)"
36 depends on EXPERIMENTAL && L2TP 49 depends on EXPERIMENTAL && L2TP