]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd4601c59a79485a7b656667260e300fc859110f6
tree6504ce7eb6d886aad6536706de9ae9080ea4d342
parenta64f68f5410b205f8aba44385684e8491d57ad34
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