mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
caif_virtio: switch to netif_napi_add_weight()
caif_virtio uses a custom napi weight, switch to the new API for setting custom weights. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4d92c62755
commit
be8af67fab
1 changed files with 2 additions and 1 deletions
|
@ -714,7 +714,8 @@ static int cfv_probe(struct virtio_device *vdev)
|
|||
/* Initialize NAPI poll context data */
|
||||
vringh_kiov_init(&cfv->ctx.riov, NULL, 0);
|
||||
cfv->ctx.head = USHRT_MAX;
|
||||
netif_napi_add(netdev, &cfv->napi, cfv_rx_poll, CFV_DEFAULT_QUOTA);
|
||||
netif_napi_add_weight(netdev, &cfv->napi, cfv_rx_poll,
|
||||
CFV_DEFAULT_QUOTA);
|
||||
|
||||
tasklet_setup(&cfv->tx_release_tasklet, cfv_tx_release_tasklet);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue