summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/broadcom/sb1250-mac.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-05-06 20:07:48 +0300
committerDavid S. Miller <davem@davemloft.net>2022-05-08 13:33:57 +0300
commitb707b89f7be36147187ebc52d91c085040c26de9 (patch)
tree9173d0c07f68348af75029bc5fc3a4ceb2e2151f /drivers/net/ethernet/broadcom/sb1250-mac.c
parentbe8af67fabcb94b2f4e0897e5782bccd3104bef3 (diff)
downloadlinux-b707b89f7be36147187ebc52d91c085040c26de9.tar.xz
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/broadcom/sb1250-mac.c')
-rw-r--r--drivers/net/ethernet/broadcom/sb1250-mac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/sb1250-mac.c b/drivers/net/ethernet/broadcom/sb1250-mac.c
index 5d5f10180158..f02facb60fd1 100644
--- a/drivers/net/ethernet/broadcom/sb1250-mac.c
+++ b/drivers/net/ethernet/broadcom/sb1250-mac.c
@@ -2203,7 +2203,7 @@ static int sbmac_init(struct platform_device *pldev, long long base)
dev->min_mtu = 0;
dev->max_mtu = ENET_PACKET_SIZE;
- netif_napi_add(dev, &sc->napi, sbmac_poll, 16);
+ netif_napi_add_weight(dev, &sc->napi, sbmac_poll, 16);
dev->irq = UNIT_INT(idx);