summaryrefslogtreecommitdiff
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2004-07-28 04:45:36 -0700
committerDavid S. Miller <davem@nuts.davemloft.net>2004-07-28 04:45:36 -0700
commit27f9a00a0e6fc565f5f52570ed633b599f89802f (patch)
tree298a105020ae4c9d594c1b0d9da512a5be3fa899 /net/core/dev.c
parent6f7e7e9e21979e675c5e623a9217a38fbd8b6049 (diff)
[PKT_SCHED]: de-inline qdiscipline locking functions
This qdisc code has several inline functions for locking that is only used when adding/deleting queuing disciplines; so make them functions instead. The new qdisc_lock_tree encapsulates the locking used throughout this code. Also qdisc_run() is only called from net/core/dev.c so it should be defined there. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: David S. Miller <davem@redhat.com>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 381cd85a4c20..af4654d93fb3 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1320,6 +1320,13 @@ int __skb_linearize(struct sk_buff *skb, int gfp_mask)
} \
}
+static inline void qdisc_run(struct net_device *dev)
+{
+ while (!netif_queue_stopped(dev) &&
+ qdisc_restart(dev)<0)
+ /* NOTHING */;
+}
+
/**
* dev_queue_xmit - transmit a buffer
* @skb: buffer to transmit