diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netdevice.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index c6efce4a04a4..b72f756542d0 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? */ |
805 | static 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 */ | ||
806 | static inline int netif_rx_schedule_prep(struct net_device *dev) | 811 | static 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 |