diff options
| author | David S. Miller <davem@davemloft.net> | 2008-07-08 20:42:10 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2008-07-08 20:42:10 -0400 |
| commit | b0e1e6462df3c5944010b3328a546d8fe5d932cd (patch) | |
| tree | 37e3f86d09d8b37deb06cf1c142baeb8246bbf97 /include | |
| parent | 555353cfa1aee293de445bfa6de43276138ddd82 (diff) | |
netdev: Move rest of qdisc state into struct netdev_queue
Now qdisc, qdisc_sleeping, and qdisc_list also live there.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/netdevice.h | 10 | ||||
| -rw-r--r-- | include/net/irda/irda_device.h | 2 |
2 files changed, 4 insertions, 8 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 633a44c6fa5e..df702a7b3db5 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -451,6 +451,9 @@ static inline void napi_synchronize(const struct napi_struct *n) | |||
| 451 | struct netdev_queue { | 451 | struct netdev_queue { |
| 452 | spinlock_t lock; | 452 | spinlock_t lock; |
| 453 | struct net_device *dev; | 453 | struct net_device *dev; |
| 454 | struct Qdisc *qdisc; | ||
| 455 | struct Qdisc *qdisc_sleeping; | ||
| 456 | struct list_head qdisc_list; | ||
| 454 | }; | 457 | }; |
| 455 | 458 | ||
| 456 | /* | 459 | /* |
| @@ -634,13 +637,6 @@ struct net_device | |||
| 634 | 637 | ||
| 635 | struct Qdisc *qdisc_ingress; | 638 | struct Qdisc *qdisc_ingress; |
| 636 | 639 | ||
| 637 | /* | ||
| 638 | * Cache line mostly used on queue transmit path (qdisc) | ||
| 639 | */ | ||
| 640 | /* device queue lock */ | ||
| 641 | struct Qdisc *qdisc; | ||
| 642 | struct Qdisc *qdisc_sleeping; | ||
| 643 | struct list_head qdisc_list; | ||
| 644 | unsigned long tx_queue_len; /* Max frames per queue allowed */ | 640 | unsigned long tx_queue_len; /* Max frames per queue allowed */ |
| 645 | 641 | ||
| 646 | /* Partially transmitted GSO packet. */ | 642 | /* Partially transmitted GSO packet. */ |
diff --git a/include/net/irda/irda_device.h b/include/net/irda/irda_device.h index f70e9b39ebaf..16fbf672e0b2 100644 --- a/include/net/irda/irda_device.h +++ b/include/net/irda/irda_device.h | |||
| @@ -223,7 +223,7 @@ int irda_device_is_receiving(struct net_device *dev); | |||
| 223 | /* Interface for internal use */ | 223 | /* Interface for internal use */ |
| 224 | static inline int irda_device_txqueue_empty(const struct net_device *dev) | 224 | static inline int irda_device_txqueue_empty(const struct net_device *dev) |
| 225 | { | 225 | { |
| 226 | return skb_queue_empty(&dev->qdisc->q); | 226 | return skb_queue_empty(&dev->tx_queue.qdisc->q); |
| 227 | } | 227 | } |
| 228 | int irda_device_set_raw_mode(struct net_device* self, int status); | 228 | int irda_device_set_raw_mode(struct net_device* self, int status); |
| 229 | struct net_device *alloc_irdadev(int sizeof_priv); | 229 | struct net_device *alloc_irdadev(int sizeof_priv); |
