From 071106ecf68c401173c58808b1cf5f68cc50d390 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 05 Jan 2024 08:39:27 +0000
Subject: [PATCH] change wifi driver to cypress

---
 kernel/include/linux/netpoll.h |   17 ++---------------
 1 files changed, 2 insertions(+), 15 deletions(-)

diff --git a/kernel/include/linux/netpoll.h b/kernel/include/linux/netpoll.h
index 3ef82d3..e6a2d72 100644
--- a/kernel/include/linux/netpoll.h
+++ b/kernel/include/linux/netpoll.h
@@ -31,8 +31,6 @@
 	bool ipv6;
 	u16 local_port, remote_port;
 	u8 remote_mac[ETH_ALEN];
-
-	struct work_struct cleanup_work;
 };
 
 struct netpoll_info {
@@ -63,17 +61,9 @@
 int __netpoll_setup(struct netpoll *np, struct net_device *ndev);
 int netpoll_setup(struct netpoll *np);
 void __netpoll_cleanup(struct netpoll *np);
-void __netpoll_free_async(struct netpoll *np);
+void __netpoll_free(struct netpoll *np);
 void netpoll_cleanup(struct netpoll *np);
-void netpoll_send_skb_on_dev(struct netpoll *np, struct sk_buff *skb,
-			     struct net_device *dev);
-static inline void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb)
-{
-	unsigned long flags;
-	local_irq_save(flags);
-	netpoll_send_skb_on_dev(np, skb, np->dev);
-	local_irq_restore(flags);
-}
+netdev_tx_t netpoll_send_skb(struct netpoll *np, struct sk_buff *skb);
 
 #ifdef CONFIG_NETPOLL
 static inline void *netpoll_poll_lock(struct napi_struct *napi)
@@ -110,9 +100,6 @@
 	return NULL;
 }
 static inline void netpoll_poll_unlock(void *have)
-{
-}
-static inline void netpoll_netdev_init(struct net_device *dev)
 {
 }
 static inline bool netpoll_tx_running(struct net_device *dev)

--
Gitblit v1.6.2