summaryrefslogtreecommitdiff
path: root/arch/um/drivers/vector_kern.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2022-05-08 11:33:57 +0100
committerDavid S. Miller <davem@davemloft.net>2022-05-08 11:33:57 +0100
commit9f88af22521db8602c68dc7b38b3b1189a6ec0ba (patch)
treeeb88fda00790024bd1dfc61db670cd9f638b7f48 /arch/um/drivers/vector_kern.c
parent8fc0b6992a06998404321f26a57ea54522659b64 (diff)
parent6f83cb8cbfbfc2f26c644dba98992356a74aec4c (diff)
Merge branch 'switch-drivers-to-netif_napi_add_weight'
Jakub Kicinski says: ==================== net: switch drivers to netif_napi_add_weight() The minority of drivers pass a custom weight to netif_napi_add(). Switch those away to the new netif_napi_add_weight(). All drivers (which can go thru net-next) calling netif_napi_add() will now be calling it with NAPI_POLL_WEIGHT or 64. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/um/drivers/vector_kern.c')
-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 */