aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2004-08-03 23:30:46 -0700
committerDavid S. Miller <davem@nuts.davemloft.net>2004-08-03 23:30:46 -0700
commit251f4c317c0d60922313476cabf37d755c88244d (patch)
tree91cf57d5a8503f0040b7e081765a38e2ccdf55ed /include
parenta7682ad7d0f1d85825e2c0b0e7ccdf26d719e6af (diff)
downloadhistory-251f4c317c0d60922313476cabf37d755c88244d.tar.gz
[PKT_SCHED]: Use double-linked list for dev->qdisc_list
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netdevice.h2
-rw-r--r--include/net/pkt_sched.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 53c73157ed749c..5edb93f163c124 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -362,8 +362,8 @@ struct net_device
struct Qdisc *qdisc;
struct Qdisc *qdisc_sleeping;
- struct Qdisc *qdisc_list;
struct Qdisc *qdisc_ingress;
+ struct list_head qdisc_list;
unsigned long tx_queue_len; /* Max frames per queue allowed */
/* ingress path synchronizer */
diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h
index 159f8ebf4bb502..f2e29fd92c1932 100644
--- a/include/net/pkt_sched.h
+++ b/include/net/pkt_sched.h
@@ -78,11 +78,11 @@ struct Qdisc
#define TCQ_F_THROTTLED 2
#define TCQ_F_INGRES 4
struct Qdisc_ops *ops;
- struct Qdisc *next;
u32 handle;
atomic_t refcnt;
struct sk_buff_head q;
struct net_device *dev;
+ struct list_head list;
struct tc_stats stats;
spinlock_t *stats_lock;