summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/falcon
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-05-12 13:56:03 -0700
committerJakub Kicinski <kuba@kernel.org>2022-05-13 17:03:09 -0700
commitc28678162b330c8d3bfc472db8c47c8e5e7726f1 (patch)
tree03559e879d4bc594742d1ec214bc297794eb530d /drivers/net/ethernet/sfc/falcon
parent2c5f1536473b7530adefd09a25cf3fef2cfe01f2 (diff)
downloadlinux-c28678162b330c8d3bfc472db8c47c8e5e7726f1.tar.gz
linux-c28678162b330c8d3bfc472db8c47c8e5e7726f1.tar.bz2
linux-c28678162b330c8d3bfc472db8c47c8e5e7726f1.zip
eth: sfc: remove remnants of the out-of-tree napi_weight module param
Remove napi_weight statics which are set to 64 and never modified, remnants of the out-of-tree napi_weight module param. Acked-by: Edward Cree <ecree.xilinx@gmail.com> Link: https://lore.kernel.org/r/20220512205603.1536771-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/sfc/falcon')
-rw-r--r--drivers/net/ethernet/sfc/falcon/efx.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/ethernet/sfc/falcon/efx.c b/drivers/net/ethernet/sfc/falcon/efx.c
index f619ffb26787..a63f40b09856 100644
--- a/drivers/net/ethernet/sfc/falcon/efx.c
+++ b/drivers/net/ethernet/sfc/falcon/efx.c
@@ -112,11 +112,6 @@ module_param(ef4_separate_tx_channels, bool, 0444);
MODULE_PARM_DESC(ef4_separate_tx_channels,
"Use separate channels for TX and RX");
-/* This is the weight assigned to each of the (per-channel) virtual
- * NAPI devices.
- */
-static int napi_weight = 64;
-
/* This is the time (in jiffies) between invocations of the hardware
* monitor.
* On Falcon-based NICs, this will:
@@ -2017,8 +2012,7 @@ static void ef4_init_napi_channel(struct ef4_channel *channel)
struct ef4_nic *efx = channel->efx;
channel->napi_dev = efx->net_dev;
- netif_napi_add_weight(channel->napi_dev, &channel->napi_str, ef4_poll,
- napi_weight);
+ netif_napi_add(channel->napi_dev, &channel->napi_str, ef4_poll, 64);
}
static void ef4_init_napi(struct ef4_nic *efx)