Patchwork [PATCHv2,vringh,3/3] caif_virtio: Introduce caif over virtio

mail settings
Submitter Rusty Russell
Date Feb. 18, 2013, 11:37 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/221648/
State Not Applicable
Delegated to: David Miller
Headers show


Rusty Russell - Feb. 18, 2013, 11:37 p.m. writes:
> From: Vikram ARV <>
> Add the the Virtio shared memory driver for STE Modems.
> caif_virtio is implemented utilizing the virtio framework
> for data transport and is managed with the remoteproc frameworks.
> The Virtio queue is used for transmitting data to the modem, and
> the new vringh implementation is receiving data over the vring.
> Signed-off-by: Vikram ARV <>
> Signed-off-by: Sjur Brændeland <>

I have applied 1 and 3 (2 is already in virtio-next); they're in my
pending-rebases branch behind the vringh patches which are pending
a final review.

Here's the warning fix patch I applied:

To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at


diff --git a/drivers/net/caif/caif_virtio.c b/drivers/net/caif/caif_virtio.c
index d4f339c..df832e7 100644
--- a/drivers/net/caif/caif_virtio.c
+++ b/drivers/net/caif/caif_virtio.c
@@ -483,7 +483,7 @@  static int cfv_probe(struct virtio_device *vdev)
 	vdev->priv = cfv;
-	vringh_iov_init(&cfv->ctx.riov, NULL, 0);
+	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);
@@ -517,7 +517,7 @@  static void cfv_remove(struct virtio_device *vdev)
 	struct cfv_info *cfv = vdev->priv;
-	vringh_iov_cleanup(&cfv->ctx.riov);
+	vringh_kiov_cleanup(&cfv->ctx.riov);
 	rproc_virtio_del_vringh(vdev, RX_RING_INDEX);
 	cfv->vr_rx = NULL;