hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/include/linux/netpoll.h
....@@ -31,8 +31,6 @@
3131 bool ipv6;
3232 u16 local_port, remote_port;
3333 u8 remote_mac[ETH_ALEN];
34
-
35
- struct work_struct cleanup_work;
3634 };
3735
3836 struct netpoll_info {
....@@ -63,17 +61,9 @@
6361 int __netpoll_setup(struct netpoll *np, struct net_device *ndev);
6462 int netpoll_setup(struct netpoll *np);
6563 void __netpoll_cleanup(struct netpoll *np);
66
-void __netpoll_free_async(struct netpoll *np);
64
+void __netpoll_free(struct netpoll *np);
6765 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);
7767
7868 #ifdef CONFIG_NETPOLL
7969 static inline void *netpoll_poll_lock(struct napi_struct *napi)
....@@ -110,9 +100,6 @@
110100 return NULL;
111101 }
112102 static inline void netpoll_poll_unlock(void *have)
113
-{
114
-}
115
-static inline void netpoll_netdev_init(struct net_device *dev)
116103 {
117104 }
118105 static inline bool netpoll_tx_running(struct net_device *dev)