diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-19 01:50:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-19 01:50:15 -0400 |
commit | 3072367300aa8c779e3a14ee8e89de079e90f3ad (patch) | |
tree | 7f74c5b8fdb300532fbbc83ba00d6d1d17af020e /include/linux/netdevice.h | |
parent | 72b25a913ed9b1ab49c7022adaf3f271a65ea219 (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 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 9c5a68850114..812bcd8b4363 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -636,8 +636,6 @@ struct net_device | |||
636 | unsigned int real_num_tx_queues; | 636 | unsigned int real_num_tx_queues; |
637 | 637 | ||
638 | unsigned long tx_queue_len; /* Max frames per queue allowed */ | 638 | unsigned long tx_queue_len; /* Max frames per queue allowed */ |
639 | spinlock_t qdisc_list_lock; | ||
640 | struct list_head qdisc_list; | ||
641 | 639 | ||
642 | /* | 640 | /* |
643 | * One part is mostly used on xmit path (device) | 641 | * One part is mostly used on xmit path (device) |