diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-05-06 19:07:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-08 12:33:57 +0200 |
commit | be8af67fabcb94b2f4e0897e5782bccd3104bef3 (patch) | |
tree | 00509fa6e274fdd8503a16b9d1525b91b909be9b /drivers/net/caif/caif_virtio.c | |
parent | um: vector: switch to netif_napi_add_weight() (diff) | |
download | linux-be8af67fabcb94b2f4e0897e5782bccd3104bef3.tar.xz linux-be8af67fabcb94b2f4e0897e5782bccd3104bef3.zip |
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>
Diffstat (limited to 'drivers/net/caif/caif_virtio.c')
-rw-r--r-- | drivers/net/caif/caif_virtio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/caif/caif_virtio.c b/drivers/net/caif/caif_virtio.c index 444ef6a342f6..5458f57177a0 100644 --- a/drivers/net/caif/caif_virtio.c +++ b/drivers/net/caif/caif_virtio.c @@ -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); |