summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/falcon/efx.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-05-06 10:07:48 -0700
committerDavid S. Miller <davem@davemloft.net>2022-05-08 11:33:57 +0100
commitb707b89f7be36147187ebc52d91c085040c26de9 (patch)
tree9173d0c07f68348af75029bc5fc3a4ceb2e2151f /drivers/net/ethernet/sfc/falcon/efx.c
parentbe8af67fabcb94b2f4e0897e5782bccd3104bef3 (diff)
downloadlinux-b707b89f7be36147187ebc52d91c085040c26de9.tar.bz2
eth: switch to netif_napi_add_weight()
Switch all Ethernet drivers which use custom napi weights to the new API. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/falcon/efx.c')
-rw-r--r--drivers/net/ethernet/sfc/falcon/efx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sfc/falcon/efx.c b/drivers/net/ethernet/sfc/falcon/efx.c
index b7282331faec..f619ffb26787 100644
--- a/drivers/net/ethernet/sfc/falcon/efx.c
+++ b/drivers/net/ethernet/sfc/falcon/efx.c
@@ -2017,8 +2017,8 @@ 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(channel->napi_dev, &channel->napi_str,
- ef4_poll, napi_weight);
+ netif_napi_add_weight(channel->napi_dev, &channel->napi_str, ef4_poll,
+ napi_weight);
}
static void ef4_init_napi(struct ef4_nic *efx)