aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/lapbether.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2022-05-06 17:07:51 +0000
committerDavid S. Miller <[email protected]>2022-05-08 10:33:57 +0000
commit6f83cb8cbfbfc2f26c644dba98992356a74aec4c (patch)
treeeb88fda00790024bd1dfc61db670cd9f638b7f48 /drivers/net/wan/lapbether.c
parentnet: virtio: switch to netif_napi_add_weight() (diff)
downloadkernel-6f83cb8cbfbfc2f26c644dba98992356a74aec4c.tar.gz
kernel-6f83cb8cbfbfc2f26c644dba98992356a74aec4c.zip
net: wan: switch to netif_napi_add_weight()
A handful of WAN drivers use custom napi weights, switch them to the new API. Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/wan/lapbether.c')
-rw-r--r--drivers/net/wan/lapbether.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c
index 282192b82404..960f1393595c 100644
--- a/drivers/net/wan/lapbether.c
+++ b/drivers/net/wan/lapbether.c
@@ -408,7 +408,7 @@ static int lapbeth_new_device(struct net_device *dev)
spin_lock_init(&lapbeth->up_lock);
skb_queue_head_init(&lapbeth->rx_queue);
- netif_napi_add(ndev, &lapbeth->napi, lapbeth_napi_poll, 16);
+ netif_napi_add_weight(ndev, &lapbeth->napi, lapbeth_napi_poll, 16);
rc = -EIO;
if (register_netdevice(ndev))