aboutsummaryrefslogtreecommitdiffstats
path: root/net/l2tp/l2tp_eth.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/l2tp/l2tp_eth.c')
-rw-r--r--net/l2tp/l2tp_eth.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/l2tp/l2tp_eth.c b/net/l2tp/l2tp_eth.c
index 755c29729b6f..9848faa3d163 100644
--- a/net/l2tp/l2tp_eth.c
+++ b/net/l2tp/l2tp_eth.c
@@ -172,6 +172,17 @@ static void l2tp_eth_delete(struct l2tp_session *session)
172 } 172 }
173} 173}
174 174
175#ifdef CONFIG_L2TP_DEBUGFS
176static void l2tp_eth_show(struct seq_file *m, void *arg)
177{
178 struct l2tp_session *session = arg;
179 struct l2tp_eth_sess *spriv = l2tp_session_priv(session);
180 struct net_device *dev = spriv->dev;
181
182 seq_printf(m, " interface %s\n", dev->name);
183}
184#endif
185
175static int l2tp_eth_create(struct net *net, u32 tunnel_id, u32 session_id, u32 peer_session_id, struct l2tp_session_cfg *cfg) 186static int l2tp_eth_create(struct net *net, u32 tunnel_id, u32 session_id, u32 peer_session_id, struct l2tp_session_cfg *cfg)
176{ 187{
177 struct net_device *dev; 188 struct net_device *dev;
@@ -233,6 +244,9 @@ static int l2tp_eth_create(struct net *net, u32 tunnel_id, u32 session_id, u32 p
233 priv->tunnel_sock = tunnel->sock; 244 priv->tunnel_sock = tunnel->sock;
234 session->recv_skb = l2tp_eth_dev_recv; 245 session->recv_skb = l2tp_eth_dev_recv;
235 session->session_close = l2tp_eth_delete; 246 session->session_close = l2tp_eth_delete;
247#ifdef CONFIG_L2TP_DEBUGFS
248 session->show = l2tp_eth_show;
249#endif
236 250
237 spriv = l2tp_session_priv(session); 251 spriv = l2tp_session_priv(session);
238 spriv->dev = dev; 252 spriv->dev = dev;