Commit 0d3b26c4 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by Kalle Valo

rtw88: 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 <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220429174643.196994-2-kuba@kernel.org
parent 5b3fd8fd
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include "util.h" #include "util.h"
#define RTW_NAPI_WEIGHT_NUM 64
#define RTW_MAX_MAC_ID_NUM 32 #define RTW_MAX_MAC_ID_NUM 32
#define RTW_MAX_SEC_CAM_NUM 32 #define RTW_MAX_SEC_CAM_NUM 32
#define MAX_PG_CAM_BACKUP_NUM 8 #define MAX_PG_CAM_BACKUP_NUM 8
......
...@@ -1718,7 +1718,7 @@ static void rtw_pci_napi_init(struct rtw_dev *rtwdev) ...@@ -1718,7 +1718,7 @@ static void rtw_pci_napi_init(struct rtw_dev *rtwdev)
init_dummy_netdev(&rtwpci->netdev); init_dummy_netdev(&rtwpci->netdev);
netif_napi_add(&rtwpci->netdev, &rtwpci->napi, rtw_pci_napi_poll, netif_napi_add(&rtwpci->netdev, &rtwpci->napi, rtw_pci_napi_poll,
RTW_NAPI_WEIGHT_NUM); NAPI_POLL_WEIGHT);
} }
static void rtw_pci_napi_deinit(struct rtw_dev *rtwdev) static void rtw_pci_napi_deinit(struct rtw_dev *rtwdev)
......
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