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-10 22:44:51 -05:00
2013-12-05 19:28:43 -05:00
2013-12-05 19:28:43 -05:00
2013-12-05 19:28:43 -05:00
2013-12-05 19:28:43 -05:00
2013-12-05 19:28:43 -05:00
2013-12-05 19:28:43 -05:00
2013-12-05 19:28:42 -05:00
2013-12-05 19:28:43 -05:00
2013-12-09 20:20:14 -05:00
2013-04-07 17:12:01 -04:00
2013-09-30 15:47:43 -04:00
2013-12-10 22:44:51 -05:00
2013-10-08 16:27:34 -04:00
2013-04-19 14:57:56 -04:00
2013-04-19 17:34:53 -04:00
2013-01-14 15:09:36 -05:00
2013-01-14 15:09:36 -05:00
2013-01-14 15:09:36 -05:00
2013-12-10 22:44:51 -05:00
2012-07-04 13:07:05 +02:00
2013-10-18 16:23:06 -04:00
2013-12-11 12:29:26 -05:00
2012-05-15 13:45:03 -04:00
2013-10-29 17:33:17 -04:00
2013-10-29 17:33:17 -04:00
2013-12-14 01:20:06 -05:00
2013-07-31 15:04:19 -07:00
2013-12-10 22:44:51 -05:00
2013-08-20 13:06:40 +02:00
2012-05-16 15:30:26 -04:00
2013-06-11 02:51:03 -07:00
2013-12-10 22:44:51 -05:00
2012-04-01 18:11:37 -04:00
2013-03-29 15:32:23 -04:00
2013-11-15 21:01:52 -05:00
2013-12-14 01:20:06 -05:00
2012-09-13 16:10:13 -04:00
2013-06-11 02:51:03 -07:00
2013-12-11 15:30:17 -05:00
2013-12-09 19:54:47 -05:00
2013-12-09 19:54:47 -05:00
2013-12-06 12:37:57 -05:00
2013-12-10 22:44:51 -05:00
2012-02-13 16:04:40 -05:00
2012-04-01 18:11:37 -04:00
2013-07-18 13:02:00 -07:00
2012-04-01 18:11:37 -04:00
2012-07-12 08:33:18 -07:00
2013-12-10 22:44:52 -05:00
2013-11-23 14:46:25 -08:00
2012-07-05 01:09:06 -07:00