aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netpoll.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/netpoll.h')
-rw-r--r--include/linux/netpoll.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/netpoll.h b/include/linux/netpoll.h
index 61aee86cf21d..66d5379c305e 100644
--- a/include/linux/netpoll.h
+++ b/include/linux/netpoll.h
@@ -66,7 +66,7 @@ static inline void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb)
66 66
67 67
68#ifdef CONFIG_NETPOLL 68#ifdef CONFIG_NETPOLL
69static inline int netpoll_rx_on(struct sk_buff *skb) 69static inline bool netpoll_rx_on(struct sk_buff *skb)
70{ 70{
71 struct netpoll_info *npinfo = rcu_dereference_bh(skb->dev->npinfo); 71 struct netpoll_info *npinfo = rcu_dereference_bh(skb->dev->npinfo);
72 72
@@ -125,7 +125,7 @@ static inline void netpoll_poll_unlock(void *have)
125 } 125 }
126} 126}
127 127
128static inline int netpoll_tx_running(struct net_device *dev) 128static inline bool netpoll_tx_running(struct net_device *dev)
129{ 129{
130 return irqs_disabled(); 130 return irqs_disabled();
131} 131}
@@ -133,11 +133,11 @@ static inline int netpoll_tx_running(struct net_device *dev)
133#else 133#else
134static inline bool netpoll_rx(struct sk_buff *skb) 134static inline bool netpoll_rx(struct sk_buff *skb)
135{ 135{
136 return 0; 136 return false;
137} 137}
138static inline int netpoll_rx_on(struct sk_buff *skb) 138static inline bool netpoll_rx_on(struct sk_buff *skb)
139{ 139{
140 return 0; 140 return false;
141} 141}
142static inline int netpoll_receive_skb(struct sk_buff *skb) 142static inline int netpoll_receive_skb(struct sk_buff *skb)
143{ 143{
@@ -153,9 +153,9 @@ static inline void netpoll_poll_unlock(void *have)
153static inline void netpoll_netdev_init(struct net_device *dev) 153static inline void netpoll_netdev_init(struct net_device *dev)
154{ 154{
155} 155}
156static inline int netpoll_tx_running(struct net_device *dev) 156static inline bool netpoll_tx_running(struct net_device *dev)
157{ 157{
158 return 0; 158 return false;
159} 159}
160#endif 160#endif
161 161