virtio: Introduce virtqueue_drop_all procedure
commit54e17709ac2d2ea8275101655fe746bba7ae0064
authorYuri Benditovich <yuri.benditovich@daynix.com>
Tue, 13 Dec 2016 08:12:07 +0000 (13 10:12 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 10 Jan 2017 05:02:53 +0000 (10 07:02 +0200)
tree963f846f63b1c92f7923112d172de942bdfcc01c
parentaa94d52142f674c7abe638f9cfb19bd89a99f154
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 <yuri.benditovich@daynix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio.c
include/hw/virtio/virtio.h