diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/netpoll.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/netpoll.h b/include/linux/netpoll.h index f54c3bb6a22b..ab856d507b7e 100644 --- a/include/linux/netpoll.h +++ b/include/linux/netpoll.h | |||
| @@ -38,8 +38,9 @@ struct netpoll { | |||
| 38 | struct netpoll_info { | 38 | struct netpoll_info { |
| 39 | atomic_t refcnt; | 39 | atomic_t refcnt; |
| 40 | 40 | ||
| 41 | int rx_flags; | 41 | unsigned long rx_flags; |
| 42 | spinlock_t rx_lock; | 42 | spinlock_t rx_lock; |
| 43 | struct mutex dev_lock; | ||
| 43 | struct list_head rx_np; /* netpolls that registered an rx_hook */ | 44 | struct list_head rx_np; /* netpolls that registered an rx_hook */ |
| 44 | 45 | ||
| 45 | struct sk_buff_head neigh_tx; /* list of neigh requests to reply to */ | 46 | struct sk_buff_head neigh_tx; /* list of neigh requests to reply to */ |
| @@ -51,6 +52,14 @@ struct netpoll_info { | |||
| 51 | struct rcu_head rcu; | 52 | struct rcu_head rcu; |
| 52 | }; | 53 | }; |
| 53 | 54 | ||
| 55 | #ifdef CONFIG_NETPOLL | ||
| 56 | extern int netpoll_rx_disable(struct net_device *dev); | ||
| 57 | extern void netpoll_rx_enable(struct net_device *dev); | ||
| 58 | #else | ||
| 59 | static inline int netpoll_rx_disable(struct net_device *dev) { return 0; } | ||
| 60 | static inline void netpoll_rx_enable(struct net_device *dev) { return; } | ||
| 61 | #endif | ||
| 62 | |||
| 54 | void netpoll_send_udp(struct netpoll *np, const char *msg, int len); | 63 | void netpoll_send_udp(struct netpoll *np, const char *msg, int len); |
| 55 | void netpoll_print_options(struct netpoll *np); | 64 | void netpoll_print_options(struct netpoll *np); |
| 56 | int netpoll_parse_options(struct netpoll *np, char *opt); | 65 | int netpoll_parse_options(struct netpoll *np, char *opt); |
