diff options
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index c81aa0f76642..5128dd7634cb 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -828,19 +828,21 @@ static inline void netif_rx_schedule(struct net_device *dev) | |||
828 | __netif_rx_schedule(dev); | 828 | __netif_rx_schedule(dev); |
829 | } | 829 | } |
830 | 830 | ||
831 | /* Try to reschedule poll. Called by dev->poll() after netif_rx_complete(). | 831 | |
832 | * Do not inline this? | 832 | static inline void __netif_rx_reschedule(struct net_device *dev, int undo) |
833 | */ | 833 | { |
834 | dev->quota += undo; | ||
835 | list_add_tail(&dev->poll_list, &__get_cpu_var(softnet_data).poll_list); | ||
836 | __raise_softirq_irqoff(NET_RX_SOFTIRQ); | ||
837 | } | ||
838 | |||
839 | /* Try to reschedule poll. Called by dev->poll() after netif_rx_complete(). */ | ||
834 | static inline int netif_rx_reschedule(struct net_device *dev, int undo) | 840 | static inline int netif_rx_reschedule(struct net_device *dev, int undo) |
835 | { | 841 | { |
836 | if (netif_rx_schedule_prep(dev)) { | 842 | if (netif_rx_schedule_prep(dev)) { |
837 | unsigned long flags; | 843 | unsigned long flags; |
838 | |||
839 | dev->quota += undo; | ||
840 | |||
841 | local_irq_save(flags); | 844 | local_irq_save(flags); |
842 | list_add_tail(&dev->poll_list, &__get_cpu_var(softnet_data).poll_list); | 845 | __netif_rx_reschedule(dev, undo); |
843 | __raise_softirq_irqoff(NET_RX_SOFTIRQ); | ||
844 | local_irq_restore(flags); | 846 | local_irq_restore(flags); |
845 | return 1; | 847 | return 1; |
846 | } | 848 | } |