summaryrefslogtreecommitdiffstats
path: root/include/net/irda
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-07-08 23:00:25 -0700
committerDavid S. Miller <davem@davemloft.net>2008-07-08 23:00:25 -0700
commit3e745dd6950d72d19e4cb30dc44307e8d6671864 (patch)
treee5afcf2b77fec8565ff6b14d5cceb0cd7bd3b2af /include/net/irda
parent5aa709954a32a646c0cf14fdf7c8834db4ff1c03 (diff)
downloadkernel-crypto-3e745dd6950d72d19e4cb30dc44307e8d6671864.tar.gz
kernel-crypto-3e745dd6950d72d19e4cb30dc44307e8d6671864.tar.xz
kernel-crypto-3e745dd6950d72d19e4cb30dc44307e8d6671864.zip
pkt_sched: Add qdisc_all_tx_empty()
This is a helper function, currently used by IRDA. This is being added so that we can contain and isolate as many explicit ->tx_queue references in the tree as possible. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/irda')
-rw-r--r--include/net/irda/irda_device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/irda/irda_device.h b/include/net/irda/irda_device.h
index 16fbf672e0b..3025ae17ddb 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);
/* Interface for internal use */
static inline int irda_device_txqueue_empty(const struct net_device *dev)
{
- return skb_queue_empty(&dev->tx_queue.qdisc->q);
+ return qdisc_all_tx_empty(dev);
}
int irda_device_set_raw_mode(struct net_device* self, int status);
struct net_device *alloc_irdadev(int sizeof_priv);