diff options
Diffstat (limited to 'include/linux/netdevice.h')
| -rw-r--r-- | include/linux/netdevice.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index b8d8c805fd75..4b6d12c7b803 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -1979,9 +1979,6 @@ struct net_device *__dev_get_by_index(struct net *net, int ifindex); | |||
| 1979 | struct net_device *dev_get_by_index_rcu(struct net *net, int ifindex); | 1979 | struct net_device *dev_get_by_index_rcu(struct net *net, int ifindex); |
| 1980 | int netdev_get_name(struct net *net, char *name, int ifindex); | 1980 | int netdev_get_name(struct net *net, char *name, int ifindex); |
| 1981 | int dev_restart(struct net_device *dev); | 1981 | int dev_restart(struct net_device *dev); |
| 1982 | #ifdef CONFIG_NETPOLL_TRAP | ||
| 1983 | int netpoll_trap(void); | ||
| 1984 | #endif | ||
| 1985 | int skb_gro_receive(struct sk_buff **head, struct sk_buff *skb); | 1982 | int skb_gro_receive(struct sk_buff **head, struct sk_buff *skb); |
| 1986 | 1983 | ||
| 1987 | static inline unsigned int skb_gro_offset(const struct sk_buff *skb) | 1984 | static inline unsigned int skb_gro_offset(const struct sk_buff *skb) |
| @@ -2186,12 +2183,6 @@ static inline void netif_tx_start_all_queues(struct net_device *dev) | |||
| 2186 | 2183 | ||
| 2187 | static inline void netif_tx_wake_queue(struct netdev_queue *dev_queue) | 2184 | static inline void netif_tx_wake_queue(struct netdev_queue *dev_queue) |
| 2188 | { | 2185 | { |
| 2189 | #ifdef CONFIG_NETPOLL_TRAP | ||
| 2190 | if (netpoll_trap()) { | ||
| 2191 | netif_tx_start_queue(dev_queue); | ||
| 2192 | return; | ||
| 2193 | } | ||
| 2194 | #endif | ||
| 2195 | if (test_and_clear_bit(__QUEUE_STATE_DRV_XOFF, &dev_queue->state)) | 2186 | if (test_and_clear_bit(__QUEUE_STATE_DRV_XOFF, &dev_queue->state)) |
| 2196 | __netif_schedule(dev_queue->qdisc); | 2187 | __netif_schedule(dev_queue->qdisc); |
| 2197 | } | 2188 | } |
| @@ -2435,10 +2426,6 @@ static inline void netif_start_subqueue(struct net_device *dev, u16 queue_index) | |||
| 2435 | static inline void netif_stop_subqueue(struct net_device *dev, u16 queue_index) | 2426 | static inline void netif_stop_subqueue(struct net_device *dev, u16 queue_index) |
| 2436 | { | 2427 | { |
| 2437 | struct netdev_queue *txq = netdev_get_tx_queue(dev, queue_index); | 2428 | struct netdev_queue *txq = netdev_get_tx_queue(dev, queue_index); |
| 2438 | #ifdef CONFIG_NETPOLL_TRAP | ||
| 2439 | if (netpoll_trap()) | ||
| 2440 | return; | ||
| 2441 | #endif | ||
| 2442 | netif_tx_stop_queue(txq); | 2429 | netif_tx_stop_queue(txq); |
| 2443 | } | 2430 | } |
| 2444 | 2431 | ||
| @@ -2473,10 +2460,6 @@ static inline bool netif_subqueue_stopped(const struct net_device *dev, | |||
| 2473 | static inline void netif_wake_subqueue(struct net_device *dev, u16 queue_index) | 2460 | static inline void netif_wake_subqueue(struct net_device *dev, u16 queue_index) |
| 2474 | { | 2461 | { |
| 2475 | struct netdev_queue *txq = netdev_get_tx_queue(dev, queue_index); | 2462 | struct netdev_queue *txq = netdev_get_tx_queue(dev, queue_index); |
| 2476 | #ifdef CONFIG_NETPOLL_TRAP | ||
| 2477 | if (netpoll_trap()) | ||
| 2478 | return; | ||
| 2479 | #endif | ||
| 2480 | if (test_and_clear_bit(__QUEUE_STATE_DRV_XOFF, &txq->state)) | 2463 | if (test_and_clear_bit(__QUEUE_STATE_DRV_XOFF, &txq->state)) |
| 2481 | __netif_schedule(txq->qdisc); | 2464 | __netif_schedule(txq->qdisc); |
| 2482 | } | 2465 | } |
