diff mbox series

[wireless-next,1/3] wifi: wil6210: switch to netif_napi_add_tx()

Message ID 20220504163316.549648-2-kuba@kernel.org (mailing list archive)
State Accepted
Commit f1c5d4ded782800d58321a9f10d0caff2af56fc3
Delegated to: Kalle Valo
Headers show
Series wifi: netif_napi_add() conversions | expand

Commit Message

Jakub Kicinski May 4, 2022, 4:33 p.m. UTC
Switch to the new API not requiring passing in NAPI_POLL_WEIGHT.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: kvalo@kernel.org
CC: linux-wireless@vger.kernel.org
---
 drivers/net/wireless/ath/wil6210/netdev.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

Comments

Kalle Valo May 6, 2022, 5:48 a.m. UTC | #1
Jakub Kicinski <kuba@kernel.org> wrote:

> Switch to the new API not requiring passing in NAPI_POLL_WEIGHT.
> 
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>

3 patches applied to wireless-next.git, thanks.

f1c5d4ded782 wil6210: switch to netif_napi_add_tx()
3ed27b602cc3 mt76: switch to netif_napi_add_tx()
193eb523d27c qtnfmac: switch to netif_napi_add_weight()
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/wil6210/netdev.c b/drivers/net/wireless/ath/wil6210/netdev.c
index 390648066382..87a88f26233e 100644
--- a/drivers/net/wireless/ath/wil6210/netdev.c
+++ b/drivers/net/wireless/ath/wil6210/netdev.c
@@ -458,16 +458,14 @@  int wil_if_add(struct wil6210_priv *wil)
 		netif_napi_add(&wil->napi_ndev, &wil->napi_rx,
 			       wil6210_netdev_poll_rx_edma,
 			       NAPI_POLL_WEIGHT);
-		netif_tx_napi_add(&wil->napi_ndev,
-				  &wil->napi_tx, wil6210_netdev_poll_tx_edma,
-				  NAPI_POLL_WEIGHT);
+		netif_napi_add_tx(&wil->napi_ndev,
+				  &wil->napi_tx, wil6210_netdev_poll_tx_edma);
 	} else {
 		netif_napi_add(&wil->napi_ndev, &wil->napi_rx,
 			       wil6210_netdev_poll_rx,
 			       NAPI_POLL_WEIGHT);
-		netif_tx_napi_add(&wil->napi_ndev,
-				  &wil->napi_tx, wil6210_netdev_poll_tx,
-				  NAPI_POLL_WEIGHT);
+		netif_napi_add_tx(&wil->napi_ndev,
+				  &wil->napi_tx, wil6210_netdev_poll_tx);
 	}
 
 	wil_update_net_queues_bh(wil, vif, NULL, true);