mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 15:20:41 +00:00
qtnfmac: switch to netif_napi_add_weight()
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
This commit is contained in:
parent
3ed27b602c
commit
193eb523d2
2 changed files with 4 additions and 4 deletions
|
@ -1146,7 +1146,7 @@ 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,
|
||||
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;
|
||||
|
|
|
@ -1159,7 +1159,7 @@ 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,
|
||||
netif_napi_add_weight(&bus->mux_dev, &bus->mux_napi,
|
||||
qtnf_topaz_rx_poll, 10);
|
||||
|
||||
ipc_int.fn = qtnf_topaz_ipc_gen_ep_int;
|
||||
|
|
Loading…
Reference in a new issue