Commit be8af67f authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

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: default avatarJakub Kicinski <kuba@kernel.org>
Acked-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4d92c627
...@@ -714,7 +714,8 @@ static int cfv_probe(struct virtio_device *vdev) ...@@ -714,7 +714,8 @@ static int cfv_probe(struct virtio_device *vdev)
/* Initialize NAPI poll context data */ /* Initialize NAPI poll context data */
vringh_kiov_init(&cfv->ctx.riov, NULL, 0); vringh_kiov_init(&cfv->ctx.riov, NULL, 0);
cfv->ctx.head = USHRT_MAX; 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); tasklet_setup(&cfv->tx_release_tasklet, cfv_tx_release_tasklet);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment