Commit 52bcfd1b authored by Jakub Kicinski's avatar Jakub Kicinski Committed by Kalle Valo

ath10k: remove a copy of the NAPI_POLL_WEIGHT define

Defining local versions of NAPI_POLL_WEIGHT with the same
values in the drivers just makes refactoring harder.
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarKalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220429174643.196994-3-kuba@kernel.org
parent 00402f49
...@@ -59,9 +59,6 @@ ...@@ -59,9 +59,6 @@
#define ATH10K_KEEPALIVE_MAX_IDLE 3895 #define ATH10K_KEEPALIVE_MAX_IDLE 3895
#define ATH10K_KEEPALIVE_MAX_UNRESPONSIVE 3900 #define ATH10K_KEEPALIVE_MAX_UNRESPONSIVE 3900
/* NAPI poll budget */
#define ATH10K_NAPI_BUDGET 64
/* SMBIOS type containing Board Data File Name Extension */ /* SMBIOS type containing Board Data File Name Extension */
#define ATH10K_SMBIOS_BDF_EXT_TYPE 0xF8 #define ATH10K_SMBIOS_BDF_EXT_TYPE 0xF8
......
...@@ -3216,7 +3216,7 @@ static void ath10k_pci_free_irq(struct ath10k *ar) ...@@ -3216,7 +3216,7 @@ static void ath10k_pci_free_irq(struct ath10k *ar)
void ath10k_pci_init_napi(struct ath10k *ar) void ath10k_pci_init_napi(struct ath10k *ar)
{ {
netif_napi_add(&ar->napi_dev, &ar->napi, ath10k_pci_napi_poll, netif_napi_add(&ar->napi_dev, &ar->napi, ath10k_pci_napi_poll,
ATH10K_NAPI_BUDGET); NAPI_POLL_WEIGHT);
} }
static int ath10k_pci_init_irq(struct ath10k *ar) static int ath10k_pci_init_irq(struct ath10k *ar)
......
...@@ -2532,7 +2532,7 @@ static int ath10k_sdio_probe(struct sdio_func *func, ...@@ -2532,7 +2532,7 @@ static int ath10k_sdio_probe(struct sdio_func *func,
} }
netif_napi_add(&ar->napi_dev, &ar->napi, ath10k_sdio_napi_poll, netif_napi_add(&ar->napi_dev, &ar->napi, ath10k_sdio_napi_poll,
ATH10K_NAPI_BUDGET); NAPI_POLL_WEIGHT);
ath10k_dbg(ar, ATH10K_DBG_BOOT, ath10k_dbg(ar, ATH10K_DBG_BOOT,
"sdio new func %d vendor 0x%x device 0x%x block 0x%x/0x%x\n", "sdio new func %d vendor 0x%x device 0x%x block 0x%x/0x%x\n",
......
...@@ -1243,7 +1243,7 @@ static int ath10k_snoc_napi_poll(struct napi_struct *ctx, int budget) ...@@ -1243,7 +1243,7 @@ static int ath10k_snoc_napi_poll(struct napi_struct *ctx, int budget)
static void ath10k_snoc_init_napi(struct ath10k *ar) static void ath10k_snoc_init_napi(struct ath10k *ar)
{ {
netif_napi_add(&ar->napi_dev, &ar->napi, ath10k_snoc_napi_poll, netif_napi_add(&ar->napi_dev, &ar->napi, ath10k_snoc_napi_poll,
ATH10K_NAPI_BUDGET); NAPI_POLL_WEIGHT);
} }
static int ath10k_snoc_request_irq(struct ath10k *ar) static int ath10k_snoc_request_irq(struct ath10k *ar)
......
...@@ -1015,7 +1015,7 @@ static int ath10k_usb_probe(struct usb_interface *interface, ...@@ -1015,7 +1015,7 @@ static int ath10k_usb_probe(struct usb_interface *interface,
} }
netif_napi_add(&ar->napi_dev, &ar->napi, ath10k_usb_napi_poll, netif_napi_add(&ar->napi_dev, &ar->napi, ath10k_usb_napi_poll,
ATH10K_NAPI_BUDGET); NAPI_POLL_WEIGHT);
usb_get_dev(dev); usb_get_dev(dev);
vendor_id = le16_to_cpu(dev->descriptor.idVendor); vendor_id = le16_to_cpu(dev->descriptor.idVendor);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment