Commit ca5ae9e4 authored by Emil Renner Berthing's avatar Emil Renner Berthing Committed by Jakub Kicinski

caif_virtio: use new tasklet API

This converts the driver to use the new tasklet API introduced in
commit 12cc923f ("tasklet: Introduce new initialization API")
Signed-off-by: default avatarEmil Renner Berthing <kernel@esmil.dk>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 5bb98b2c
...@@ -598,9 +598,9 @@ static netdev_tx_t cfv_netdev_tx(struct sk_buff *skb, struct net_device *netdev) ...@@ -598,9 +598,9 @@ static netdev_tx_t cfv_netdev_tx(struct sk_buff *skb, struct net_device *netdev)
return NETDEV_TX_OK; return NETDEV_TX_OK;
} }
static void cfv_tx_release_tasklet(unsigned long drv) static void cfv_tx_release_tasklet(struct tasklet_struct *t)
{ {
struct cfv_info *cfv = (struct cfv_info *)drv; struct cfv_info *cfv = from_tasklet(cfv, t, tx_release_tasklet);
cfv_release_used_buf(cfv->vq_tx); cfv_release_used_buf(cfv->vq_tx);
} }
...@@ -716,9 +716,7 @@ static int cfv_probe(struct virtio_device *vdev) ...@@ -716,9 +716,7 @@ static int cfv_probe(struct virtio_device *vdev)
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(netdev, &cfv->napi, cfv_rx_poll, CFV_DEFAULT_QUOTA);
tasklet_init(&cfv->tx_release_tasklet, tasklet_setup(&cfv->tx_release_tasklet, cfv_tx_release_tasklet);
cfv_tx_release_tasklet,
(unsigned long)cfv);
/* Carrier is off until netdevice is opened */ /* Carrier is off until netdevice is opened */
netif_carrier_off(netdev); netif_carrier_off(netdev);
......
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