aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-11-11 22:48:14 -0500
committerJeff Garzik <jgarzik@pobox.com>2005-11-11 22:48:14 -0500
commit06d61cbf7c2522f43c09d5bb050acd0bd31812c0 (patch)
tree2ce1fb910566961de2d2ff1f2f01a9c0546d8092 /include
parent34afd638d0b0698e66b6aa4f749face019a3e90f (diff)
parentd0bbccfa3297d3ef6ae4691585abde9a6c26b186 (diff)
Merge branch 'sky2'
Diffstat (limited to 'include')
-rw-r--r--include/linux/netdevice.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 936f8b76114e..97bbca6b2960 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -802,11 +802,15 @@ static inline u32 netif_msg_init(int debug_value, int default_msg_enable_bits)
802} 802}
803 803
804/* Schedule rx intr now? */ 804/* Schedule rx intr now? */
805static inline int netif_rx_schedule_test(struct net_device *dev)
806{
807 return !test_and_set_bit(__LINK_STATE_RX_SCHED, &dev->state);
808}
805 809
810/* Schedule only if device is up */
806static inline int netif_rx_schedule_prep(struct net_device *dev) 811static inline int netif_rx_schedule_prep(struct net_device *dev)
807{ 812{
808 return netif_running(dev) && 813 return netif_running(dev) && netif_rx_schedule_test(dev);
809 !test_and_set_bit(__LINK_STATE_RX_SCHED, &dev->state);
810} 814}
811 815
812/* Add interface to tail of rx poll list. This assumes that _prep has 816/* Add interface to tail of rx poll list. This assumes that _prep has