diff options
author | Jiri Kosina <jkosina@suse.cz> | 2016-08-10 12:05:15 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-11 03:19:02 +0300 |
commit | 59cc1f61f09c26ce82c308e24b76141e1efe99f8 (patch) | |
tree | f643eab05a5617402f6f995b0304d3fbfa48570e /net/sched/sch_mqprio.c | |
parent | e87a8f24c9151d449ab46d82a504c1ebfea210f2 (diff) | |
download | linux-59cc1f61f09c26ce82c308e24b76141e1efe99f8.tar.xz |
net: sched: convert qdisc linked list to hashtable
Convert the per-device linked list into a hashtable. The primary
motivation for this change is that currently, we're not tracking all the
qdiscs in hierarchy (e.g. excluding default qdiscs), as the lookup
performed over the linked list by qdisc_match_from_root() is rather
expensive.
The ultimate goal is to get rid of hidden qdiscs completely, which will
bring much more determinism in user experience.
Reviewed-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_mqprio.c')
-rw-r--r-- | net/sched/sch_mqprio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_mqprio.c b/net/sched/sch_mqprio.c index 549c66359924..b5c502c78143 100644 --- a/net/sched/sch_mqprio.c +++ b/net/sched/sch_mqprio.c @@ -182,7 +182,7 @@ static void mqprio_attach(struct Qdisc *sch) if (old) qdisc_destroy(old); if (ntx < dev->real_num_tx_queues) - qdisc_list_add(qdisc); + qdisc_hash_add(qdisc); } kfree(priv->qdiscs); priv->qdiscs = NULL; |