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)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 13 Feb 2018 18:32:11 +0000 (18:32 +0000)
commit4c563277c65bf9849ecbeb451cef15bc510a1968
tree99b2ee3a267740966fc620a2cbc64e643cea64f2
parent2dc59c2f29d0ee5ebbf0595a46aba52a6abbecdf
l2tp: push all ppp pseudowire shutdown through .release handler

commit cf2f5c886a209377daefd5d2ba0bcd49c3887813 upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/l2tp/l2tp_ppp.c