aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-07-17 03:50:32 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-17 22:21:26 -0400
commitead81cc5fc6d996db6afb20f211241612610a07a (patch)
tree5ffc3c7960f6ba755fe6e44eda0b82cdb8209180 /include/linux/netdevice.h
parent15b458fa65cbba395724a99ab1b7d3785ca76c1c (diff)
netdevice: Move qdisc_list back into net_device proper.
And give it it's own lock. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 1e839fa01434..3170bcef734b 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -450,7 +450,6 @@ struct netdev_queue {
450 spinlock_t _xmit_lock; 450 spinlock_t _xmit_lock;
451 int xmit_lock_owner; 451 int xmit_lock_owner;
452 struct Qdisc *qdisc_sleeping; 452 struct Qdisc *qdisc_sleeping;
453 struct list_head qdisc_list;
454} ____cacheline_aligned_in_smp; 453} ____cacheline_aligned_in_smp;
455 454
456/* 455/*
@@ -638,6 +637,8 @@ struct net_device
638 unsigned int real_num_tx_queues; 637 unsigned int real_num_tx_queues;
639 638
640 unsigned long tx_queue_len; /* Max frames per queue allowed */ 639 unsigned long tx_queue_len; /* Max frames per queue allowed */
640 spinlock_t qdisc_list_lock;
641 struct list_head qdisc_list;
641 642
642/* 643/*
643 * One part is mostly used on xmit path (device) 644 * One part is mostly used on xmit path (device)