sch_plug: purge buffered packets during reset
authorWANG Cong <xiyou.wangcong@gmail.com>
Tue, 21 Jul 2015 23:31:53 +0000 (16:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jul 2015 05:57:14 +0000 (22:57 -0700)
Otherwise the skbuff related structures are not correctly
refcount'ed.

Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_plug.c

index 89f8fcf..ade9445 100644 (file)
@@ -216,6 +216,7 @@ static struct Qdisc_ops plug_qdisc_ops __read_mostly = {
        .peek        =       qdisc_peek_head,
        .init        =       plug_init,
        .change      =       plug_change,
+       .reset       =       qdisc_reset_queue,
        .owner       =       THIS_MODULE,
 };