]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
virtio: add ability to iterate over vqs
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 20 Apr 2018 17:22:40 +0000 (20:22 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 May 2018 22:13:05 +0000 (15:13 -0700)
commit90488aaaf37f7cf3b49f834b4fd9a66bf773d7ec
tree5974698d8efeea6a131f9ed1555f3e364542a5be
parent0160bda77b3360ee3a2993ae8ac64fed90998375
virtio: add ability to iterate over vqs

commit 24a7e4d20783c0514850f24a5c41ede46ab058f0 upstream.

For cleanup it's helpful to be able to simply scan all vqs and discard
all data. Add an iterator to do that.

Cc: stable@vger.kernel.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/virtio.h