diff options
author | Eric Dumazet <edumazet@google.com> | 2013-12-05 14:12:02 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-09 19:54:47 -0500 |
commit | 95dc19299f741c986227ec33e23cbf9b3321f812 (patch) | |
tree | 603380aee1a70b573c604abded1190d4203a8ca8 /net/sched/sch_api.c | |
parent | fbec3706380726e0959fe50e748dd6cda5697f56 (diff) |
pkt_sched: give visibility to mq slave qdiscs
Commit 6da7c8fcbcbd ("qdisc: allow setting default queuing discipline")
added the ability to change default qdisc from pfifo_fast to say fq
But as most modern ethernet devices are multiqueue, we cant really
see all the statistics from "tc -s qdisc show", as the default root
qdisc is mq.
This patch adds the calls to qdisc_list_add() to mq and mqprio
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_api.c')
-rw-r--r-- | net/sched/sch_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index cd81505662b8..547b4a88ae2a 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c | |||
@@ -271,11 +271,12 @@ static struct Qdisc *qdisc_match_from_root(struct Qdisc *root, u32 handle) | |||
271 | return NULL; | 271 | return NULL; |
272 | } | 272 | } |
273 | 273 | ||
274 | static void qdisc_list_add(struct Qdisc *q) | 274 | void qdisc_list_add(struct Qdisc *q) |
275 | { | 275 | { |
276 | if ((q->parent != TC_H_ROOT) && !(q->flags & TCQ_F_INGRESS)) | 276 | if ((q->parent != TC_H_ROOT) && !(q->flags & TCQ_F_INGRESS)) |
277 | list_add_tail(&q->list, &qdisc_dev(q)->qdisc->list); | 277 | list_add_tail(&q->list, &qdisc_dev(q)->qdisc->list); |
278 | } | 278 | } |
279 | EXPORT_SYMBOL(qdisc_list_add); | ||
279 | 280 | ||
280 | void qdisc_list_del(struct Qdisc *q) | 281 | void qdisc_list_del(struct Qdisc *q) |
281 | { | 282 | { |