diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/netdevice.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index e027a3750a77..24cef42f1e0f 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -654,8 +654,10 @@ static inline void netif_start_queue(struct net_device *dev) | |||
654 | static inline void netif_wake_queue(struct net_device *dev) | 654 | static inline void netif_wake_queue(struct net_device *dev) |
655 | { | 655 | { |
656 | #ifdef CONFIG_NETPOLL_TRAP | 656 | #ifdef CONFIG_NETPOLL_TRAP |
657 | if (netpoll_trap()) | 657 | if (netpoll_trap()) { |
658 | clear_bit(__LINK_STATE_XOFF, &dev->state); | ||
658 | return; | 659 | return; |
660 | } | ||
659 | #endif | 661 | #endif |
660 | if (test_and_clear_bit(__LINK_STATE_XOFF, &dev->state)) | 662 | if (test_and_clear_bit(__LINK_STATE_XOFF, &dev->state)) |
661 | __netif_schedule(dev); | 663 | __netif_schedule(dev); |
@@ -663,10 +665,6 @@ static inline void netif_wake_queue(struct net_device *dev) | |||
663 | 665 | ||
664 | static inline void netif_stop_queue(struct net_device *dev) | 666 | static inline void netif_stop_queue(struct net_device *dev) |
665 | { | 667 | { |
666 | #ifdef CONFIG_NETPOLL_TRAP | ||
667 | if (netpoll_trap()) | ||
668 | return; | ||
669 | #endif | ||
670 | set_bit(__LINK_STATE_XOFF, &dev->state); | 668 | set_bit(__LINK_STATE_XOFF, &dev->state); |
671 | } | 669 | } |
672 | 670 | ||