diff options
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 07e114d48bbb..7fda03d338d1 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -802,16 +802,16 @@ static inline u32 netif_msg_init(int debug_value, int default_msg_enable_bits) | |||
802 | return (1 << debug_value) - 1; | 802 | return (1 << debug_value) - 1; |
803 | } | 803 | } |
804 | 804 | ||
805 | /* Schedule rx intr now? */ | 805 | /* Test if receive needs to be scheduled */ |
806 | static inline int netif_rx_schedule_test(struct net_device *dev) | 806 | static inline int __netif_rx_schedule_prep(struct net_device *dev) |
807 | { | 807 | { |
808 | return !test_and_set_bit(__LINK_STATE_RX_SCHED, &dev->state); | 808 | return !test_and_set_bit(__LINK_STATE_RX_SCHED, &dev->state); |
809 | } | 809 | } |
810 | 810 | ||
811 | /* Schedule only if device is up */ | 811 | /* Test if receive needs to be scheduled but only if up */ |
812 | static inline int netif_rx_schedule_prep(struct net_device *dev) | 812 | static inline int netif_rx_schedule_prep(struct net_device *dev) |
813 | { | 813 | { |
814 | return netif_running(dev) && netif_rx_schedule_test(dev); | 814 | return netif_running(dev) && __netif_rx_schedule_prep(dev); |
815 | } | 815 | } |
816 | 816 | ||
817 | /* Add interface to tail of rx poll list. This assumes that _prep has | 817 | /* Add interface to tail of rx poll list. This assumes that _prep has |