Eric Dumazet e57a784d8c pkt_sched: set root qdisc before change() in attach_default_qdiscs()
After commit 95dc19299f74 ("pkt_sched: give visibility to mq slave
qdiscs") we call disc_list_add() while the device qdisc might be
the noop_qdisc one.

This shows up as duplicates in "tc qdisc show", as all inactive devices
point to noop_qdisc.

Fix this by setting dev->qdisc to the new qdisc before calling
ops->change() in attach_default_qdiscs()

Add a WARN_ON_ONCE() to catch any future similar problem.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-12-14 01:20:06 -05:00
..
2013-12-09 20:56:12 -05:00
2013-12-10 21:57:11 -05:00
2013-12-14 00:58:22 -05:00
2013-09-23 16:52:45 -04:00
2013-10-19 19:36:19 -04:00
2013-12-06 16:35:58 -05:00
2013-11-21 13:09:42 -05:00
2013-12-09 20:24:18 -05:00
2013-11-07 19:28:58 -05:00