summaryrefslogtreecommitdiff
path: root/arch/um
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-05-06 20:07:46 +0300
committerDavid S. Miller <davem@davemloft.net>2022-05-08 13:33:56 +0300
commit4d92c627557584621fcea04992b2935feff99a24 (patch)
treeec794d78ed7c19b2cd90947ac0d5ed3d23d149b9 /arch/um
parent8fc0b6992a06998404321f26a57ea54522659b64 (diff)
downloadlinux-4d92c627557584621fcea04992b2935feff99a24.tar.xz
um: vector: switch to netif_napi_add_weight()
UM's netdev driver uses a custom napi weight, switch to the new API for setting custom weight. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/drivers/vector_kern.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/um/drivers/vector_kern.c b/arch/um/drivers/vector_kern.c
index 1d6f6a66766c..548265312743 100644
--- a/arch/um/drivers/vector_kern.c
+++ b/arch/um/drivers/vector_kern.c
@@ -1255,7 +1255,8 @@ static int vector_net_open(struct net_device *dev)
goto out_close;
}
- netif_napi_add(vp->dev, &vp->napi, vector_poll, get_depth(vp->parsed));
+ netif_napi_add_weight(vp->dev, &vp->napi, vector_poll,
+ get_depth(vp->parsed));
napi_enable(&vp->napi);
/* READ IRQ */