qtnfmac: switch to netif_napi_add_weight()
authorJakub Kicinski <kuba@kernel.org>
Wed, 4 May 2022 16:33:16 +0000 (09:33 -0700)
committerKalle Valo <kvalo@kernel.org>
Fri, 6 May 2022 05:47:52 +0000 (08:47 +0300)
qtnfmac chooses its own magic NAPI weight so switch to the new
API created for those who don't use NAPI_POLL_WEIGHT.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220504163316.549648-4-kuba@kernel.org
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c
drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c

index 840728ed57b28b9fef3d2c70b7c5e5737f09fa47..8c23a77d1671a0501208819e8e524e4bb1045cc9 100644 (file)
@@ -1146,8 +1146,8 @@ static int qtnf_pcie_pearl_probe(struct qtnf_bus *bus, unsigned int tx_bd_size,
        }
 
        tasklet_setup(&ps->base.reclaim_tq, qtnf_pearl_reclaim_tasklet_fn);
-       netif_napi_add(&bus->mux_dev, &bus->mux_napi,
-                      qtnf_pcie_pearl_rx_poll, 10);
+       netif_napi_add_weight(&bus->mux_dev, &bus->mux_napi,
+                             qtnf_pcie_pearl_rx_poll, 10);
 
        ipc_int.fn = qtnf_pcie_pearl_ipc_gen_ep_int;
        ipc_int.arg = ps;
index 9534e1b33780d61705daa2b6e0078859023f4ae0..d83362578374f136419e148958d28606a23733fb 100644 (file)
@@ -1159,8 +1159,8 @@ static int qtnf_pcie_topaz_probe(struct qtnf_bus *bus,
        }
 
        tasklet_setup(&ts->base.reclaim_tq, qtnf_reclaim_tasklet_fn);
-       netif_napi_add(&bus->mux_dev, &bus->mux_napi,
-                      qtnf_topaz_rx_poll, 10);
+       netif_napi_add_weight(&bus->mux_dev, &bus->mux_napi,
+                             qtnf_topaz_rx_poll, 10);
 
        ipc_int.fn = qtnf_topaz_ipc_gen_ep_int;
        ipc_int.arg = ts;