Skip to content

Commit

Permalink
caif_virtio: switch to netif_napi_add_weight()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jakub Kicinski authored and David S. Miller committed May 8, 2022
1 parent 4d92c62 commit be8af67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/caif/caif_virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit be8af67

Please sign in to comment.