aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-07-19 01:50:15 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-19 01:50:15 -0400
commit3072367300aa8c779e3a14ee8e89de079e90f3ad (patch)
tree7f74c5b8fdb300532fbbc83ba00d6d1d17af020e /net/core
parent72b25a913ed9b1ab49c7022adaf3f271a65ea219 (diff)
pkt_sched: Manage qdisc list inside of root qdisc.
Idea is from Patrick McHardy. Instead of managing the list of qdiscs on the device level, manage it in the root qdisc of a netdev_queue. This solves all kinds of visibility issues during qdisc destruction. The way to iterate over all qdiscs of a netdev_queue is to visit the netdev_queue->qdisc, and then traverse it's list. The only special case is to ignore builting qdiscs at the root when dumping or doing a qdisc_lookup(). That was not needed previously because builtin qdiscs were not added to the device's qdisc_list. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/dev.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index e54acde839da..065b9817e209 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -3888,8 +3888,6 @@ int register_netdevice(struct net_device *dev)
3888 net = dev_net(dev); 3888 net = dev_net(dev);
3889 3889
3890 spin_lock_init(&dev->addr_list_lock); 3890 spin_lock_init(&dev->addr_list_lock);
3891 spin_lock_init(&dev->qdisc_list_lock);
3892 INIT_LIST_HEAD(&dev->qdisc_list);
3893 netdev_init_queue_locks(dev); 3891 netdev_init_queue_locks(dev);
3894 3892
3895 dev->iflink = -1; 3893 dev->iflink = -1;