From: Cong Wang <redacted>
Date: Fri, 31 Jul 2015 17:53:39 -0700
From: Eric Dumazet <redacted>
Alex reported the following crash when using fq_codel
with htb:
...
As Jamal pointed out, there is actually no need to call dequeue
to purge the queued skb's in reset, data structures can be just
reset explicitly. Therefore, we reset everything except config's
and stats, so that we would have a fresh start after device flipping.
Fixes: 4b549a2ef4be ("fq_codel: Fair Queue Codel AQM")
Reported-by: Alex Gartrell <redacted>
Cc: Alex Gartrell <redacted>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Eric Dumazet <redacted>
[xiyou.wangcong@gmail.com: added codel_vars_init() and qdisc_qstats_backlog_dec()]
Signed-off-by: Cong Wang <redacted>
Applied, thanks.