diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-05-06 19:07:48 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-08 12:33:57 +0200 |
commit | b707b89f7be36147187ebc52d91c085040c26de9 (patch) | |
tree | 9173d0c07f68348af75029bc5fc3a4ceb2e2151f /drivers/net/ethernet/ezchip | |
parent | caif_virtio: switch to netif_napi_add_weight() (diff) | |
download | linux-b707b89f7be36147187ebc52d91c085040c26de9.tar.xz linux-b707b89f7be36147187ebc52d91c085040c26de9.zip |
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/ezchip')
-rw-r--r-- | drivers/net/ethernet/ezchip/nps_enet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/ezchip/nps_enet.c b/drivers/net/ethernet/ezchip/nps_enet.c index 69dbf950d451..f1eb660aaee2 100644 --- a/drivers/net/ethernet/ezchip/nps_enet.c +++ b/drivers/net/ethernet/ezchip/nps_enet.c @@ -612,8 +612,8 @@ static s32 nps_enet_probe(struct platform_device *pdev) goto out_netdev; } - netif_napi_add(ndev, &priv->napi, nps_enet_poll, - NPS_ENET_NAPI_POLL_WEIGHT); + netif_napi_add_weight(ndev, &priv->napi, nps_enet_poll, + NPS_ENET_NAPI_POLL_WEIGHT); /* Register the driver. Should be the last thing in probe */ err = register_netdev(ndev); |