]> Pileus Git - ~andy/linux/blobdiff - drivers/vhost/vhost.c
vhost-net: cleanup macros for DMA status tracking
[~andy/linux] / drivers / vhost / vhost.c
index 99ac2cb08b43bcb3b570969d752bff25126f298d..f23cf8956d194781825a06eaf4781081314128d3 100644 (file)
@@ -1600,13 +1600,13 @@ void vhost_ubuf_put_and_wait(struct vhost_ubuf_ref *ubufs)
        kfree(ubufs);
 }
 
-void vhost_zerocopy_callback(struct ubuf_info *ubuf)
+void vhost_zerocopy_callback(struct ubuf_info *ubuf, bool status)
 {
        struct vhost_ubuf_ref *ubufs = ubuf->ctx;
        struct vhost_virtqueue *vq = ubufs->vq;
 
        vhost_poll_queue(&vq->poll);
-       /* set len = 1 to mark this desc buffers done DMA */
+       /* set len to mark this desc buffers done DMA */
        vq->heads[ubuf->desc].len = VHOST_DMA_DONE_LEN;
        kref_put(&ubufs->kref, vhost_zerocopy_done_signal);
 }