l2tp: push all ppp pseudowire shutdown through .release handler
authorTom Parkin <tparkin@katalix.com>
Tue, 19 Mar 2013 06:11:21 +0000 (06:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Mar 2013 16:10:39 +0000 (12:10 -0400)
commitcf2f5c886a209377daefd5d2ba0bcd49c3887813
tree6504ce7eb6d886aad6536706de9ae9080ea4d342
parent4c6e2fd35460208596fa099ee0750a4b0438aa5c
l2tp: push all ppp pseudowire shutdown through .release handler

If userspace deletes a ppp pseudowire using the netlink API, either by
directly deleting the session or by deleting the tunnel that contains the
session, we need to tear down the corresponding pppox channel.

Rather than trying to manage two pppox unbind codepaths, switch the netlink
and l2tp_core session_close handlers to close via. the l2tp_ppp socket
.release handler.

Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_ppp.c