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>
This commit is contained in:
parent
8fc0b6992a
commit
4d92c62755
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user