Browse Source

sch_plug: purge buffered packets during reset

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>
WANG Cong 10 years ago
parent
commit
fe6bea7f1f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      net/sched/sch_plug.c

+ 1 - 0
net/sched/sch_plug.c

@@ -216,6 +216,7 @@ static struct Qdisc_ops plug_qdisc_ops __read_mostly = {
 	.peek        =       qdisc_peek_head,
 	.peek        =       qdisc_peek_head,
 	.init        =       plug_init,
 	.init        =       plug_init,
 	.change      =       plug_change,
 	.change      =       plug_change,
+	.reset       =	     qdisc_reset_queue,
 	.owner       =       THIS_MODULE,
 	.owner       =       THIS_MODULE,
 };
 };