l2tp: add session reorder queue purge function to core
authorTom Parkin <tparkin@katalix.com>
Tue, 19 Mar 2013 06:11:19 +0000 (06:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Mar 2013 16:10:39 +0000 (12:10 -0400)
commit48f72f92b31431c40279b0fba6c5588e07e67d95
tree7a5aaf6723d503ae6ea56290b457f42c3ebd63e6
parent02d13ed5f94af38c37d1abd53462fe48d78bcc9d
l2tp: add session reorder queue purge function to core

If an l2tp session is deleted, it is necessary to delete skbs in-flight
on the session's reorder queue before taking it down.

Rather than having each pseudowire implementation reaching into the
l2tp_session struct to handle this itself, provide a function in l2tp_core to
purge the session queue.

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_core.c
net/l2tp/l2tp_core.h