| .. | .. |
|---|
| 31 | 31 | bool ipv6; |
|---|
| 32 | 32 | u16 local_port, remote_port; |
|---|
| 33 | 33 | u8 remote_mac[ETH_ALEN]; |
|---|
| 34 | | - |
|---|
| 35 | | - struct work_struct cleanup_work; |
|---|
| 36 | 34 | }; |
|---|
| 37 | 35 | |
|---|
| 38 | 36 | struct netpoll_info { |
|---|
| .. | .. |
|---|
| 63 | 61 | int __netpoll_setup(struct netpoll *np, struct net_device *ndev); |
|---|
| 64 | 62 | int netpoll_setup(struct netpoll *np); |
|---|
| 65 | 63 | void __netpoll_cleanup(struct netpoll *np); |
|---|
| 66 | | -void __netpoll_free_async(struct netpoll *np); |
|---|
| 64 | +void __netpoll_free(struct netpoll *np); |
|---|
| 67 | 65 | void netpoll_cleanup(struct netpoll *np); |
|---|
| 68 | | -void netpoll_send_skb_on_dev(struct netpoll *np, struct sk_buff *skb, |
|---|
| 69 | | - struct net_device *dev); |
|---|
| 70 | | -static inline void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb) |
|---|
| 71 | | -{ |
|---|
| 72 | | - unsigned long flags; |
|---|
| 73 | | - local_irq_save(flags); |
|---|
| 74 | | - netpoll_send_skb_on_dev(np, skb, np->dev); |
|---|
| 75 | | - local_irq_restore(flags); |
|---|
| 76 | | -} |
|---|
| 66 | +netdev_tx_t netpoll_send_skb(struct netpoll *np, struct sk_buff *skb); |
|---|
| 77 | 67 | |
|---|
| 78 | 68 | #ifdef CONFIG_NETPOLL |
|---|
| 79 | 69 | static inline void *netpoll_poll_lock(struct napi_struct *napi) |
|---|
| .. | .. |
|---|
| 110 | 100 | return NULL; |
|---|
| 111 | 101 | } |
|---|
| 112 | 102 | static inline void netpoll_poll_unlock(void *have) |
|---|
| 113 | | -{ |
|---|
| 114 | | -} |
|---|
| 115 | | -static inline void netpoll_netdev_init(struct net_device *dev) |
|---|
| 116 | 103 | { |
|---|
| 117 | 104 | } |
|---|
| 118 | 105 | static inline bool netpoll_tx_running(struct net_device *dev) |
|---|