diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-05-06 10:07:48 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-08 11:33:57 +0100 |
commit | b707b89f7be36147187ebc52d91c085040c26de9 (patch) | |
tree | 9173d0c07f68348af75029bc5fc3a4ceb2e2151f /drivers/net/ethernet/arc | |
parent | be8af67fabcb94b2f4e0897e5782bccd3104bef3 (diff) | |
download | lwn-b707b89f7be36147187ebc52d91c085040c26de9.tar.gz lwn-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/arc')
-rw-r--r-- | drivers/net/ethernet/arc/emac_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/arc/emac_main.c b/drivers/net/ethernet/arc/emac_main.c index c642c3d3e600..288e2961823e 100644 --- a/drivers/net/ethernet/arc/emac_main.c +++ b/drivers/net/ethernet/arc/emac_main.c @@ -981,7 +981,8 @@ int arc_emac_probe(struct net_device *ndev, int interface) dev_info(dev, "connected to %s phy with id 0x%x\n", phydev->drv->name, phydev->phy_id); - netif_napi_add(ndev, &priv->napi, arc_emac_poll, ARC_EMAC_NAPI_WEIGHT); + netif_napi_add_weight(ndev, &priv->napi, arc_emac_poll, + ARC_EMAC_NAPI_WEIGHT); err = register_netdev(ndev); if (err) { |