diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-04-28 14:23:18 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-29 11:56:41 +0100 |
commit | e702def527ecdeabe0c8a302db0370161892d740 (patch) | |
tree | 5819272ef10410b91069753ad3b5f2724a353c22 /drivers/net/ethernet/emulex/benet/be.h | |
parent | 0258f5399f0cba31933be07cf222f084999fa94e (diff) | |
download | lwn-e702def527ecdeabe0c8a302db0370161892d740.tar.gz lwn-e702def527ecdeabe0c8a302db0370161892d740.zip |
eth: benet: 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: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be.h')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h index 8689d4a51fe5..61fe9625bed1 100644 --- a/drivers/net/ethernet/emulex/benet/be.h +++ b/drivers/net/ethernet/emulex/benet/be.h @@ -101,8 +101,7 @@ #define MAX_ROCE_EQS 5 #define MAX_MSIX_VECTORS 32 #define MIN_MSIX_VECTORS 1 -#define BE_NAPI_WEIGHT 64 -#define MAX_RX_POST BE_NAPI_WEIGHT /* Frags posted at a time */ +#define MAX_RX_POST NAPI_POLL_WEIGHT /* Frags posted at a time */ #define RX_FRAGS_REFILL_WM (RX_Q_LEN - MAX_RX_POST) #define MAX_NUM_POST_ERX_DB 255u |