caif_virtio: switch to netif_napi_add_weight()
authorJakub Kicinski <kuba@kernel.org>
Fri, 6 May 2022 17:07:47 +0000 (10:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 May 2022 10:33:57 +0000 (11:33 +0100)
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>
drivers/net/caif/caif_virtio.c

index 444ef6a..5458f57 100644 (file)
@@ -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);