From 54e17709ac2d2ea8275101655fe746bba7ae0064 Mon Sep 17 00:00:00 2001 From: Yuri Benditovich Date: Tue, 13 Dec 2016 10:12:07 +0200 Subject: virtio: Introduce virtqueue_drop_all procedure Add procedure for fast drop of queued packets, acting like pop and push without mapping the buffers into memory. Signed-off-by: Yuri Benditovich Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/virtio/virtio.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/hw/virtio/virtio.h') diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index e15c06489b..e5541c61f7 100644 --- a/include/hw/virtio/virtio.h +++ b/include/hw/virtio/virtio.h @@ -173,6 +173,7 @@ void virtqueue_fill(VirtQueue *vq, const VirtQueueElement *elem, void virtqueue_map(VirtIODevice *vdev, VirtQueueElement *elem); void *virtqueue_pop(VirtQueue *vq, size_t sz); +unsigned int virtqueue_drop_all(VirtQueue *vq); void *qemu_get_virtqueue_element(VirtIODevice *vdev, QEMUFile *f, size_t sz); void qemu_put_virtqueue_element(QEMUFile *f, VirtQueueElement *elem); int virtqueue_avail_bytes(VirtQueue *vq, unsigned int in_bytes, -- cgit v1.2.3-55-g7522