summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/myricom
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/myricom
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/myricom')
-rw-r--r--drivers/net/ethernet/myricom/myri10ge/myri10ge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c
index fe5e77330f5f..61497c3e4cfb 100644
--- a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c
+++ b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c
@@ -3586,8 +3586,8 @@ static int myri10ge_alloc_slices(struct myri10ge_priv *mgp)
goto abort;
ss->mgp = mgp;
ss->dev = mgp->dev;
- netif_napi_add(ss->dev, &ss->napi, myri10ge_poll,
- myri10ge_napi_weight);
+ netif_napi_add_weight(ss->dev, &ss->napi, myri10ge_poll,
+ myri10ge_napi_weight);
}
return 0;
abort: