Skip to content

Commit

Permalink
um: vector: switch to netif_napi_add_weight()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jakub Kicinski authored and David S. Miller committed May 8, 2022
1 parent 8fc0b69 commit 4d92c62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/um/drivers/vector_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4d92c62

Please sign in to comment.