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/realtek | |
parent | be8af67fabcb94b2f4e0897e5782bccd3104bef3 (diff) | |
download | linux-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/realtek')
-rw-r--r-- | drivers/net/ethernet/realtek/8139cp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/realtek/8139cp.c b/drivers/net/ethernet/realtek/8139cp.c index ad7b9e9d7f95..e0feeec13da6 100644 --- a/drivers/net/ethernet/realtek/8139cp.c +++ b/drivers/net/ethernet/realtek/8139cp.c @@ -1986,7 +1986,7 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) eth_hw_addr_set(dev, (u8 *)addr); dev->netdev_ops = &cp_netdev_ops; - netif_napi_add(dev, &cp->napi, cp_rx_poll, 16); + netif_napi_add_weight(dev, &cp->napi, cp_rx_poll, 16); dev->ethtool_ops = &cp_ethtool_ops; dev->watchdog_timeo = TX_TIMEOUT; |