]> git.proxmox.com Git - mirror_qemu.git/commit - hw/virtio/virtio.c
virtio: introduce virtqueue_discard()
authorJason Wang <jasowang@redhat.com>
Fri, 25 Sep 2015 05:21:29 +0000 (13:21 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 1 Oct 2015 13:16:52 +0000 (16:16 +0300)
commit29b9f5efd78ae0f9cc02dd169b6e80d2c404bade
tree61adbcab5d9a55d6ee79959d06763bffb5d40193
parentce317461573bac12b10d67699b4ddf1f97cf066c
virtio: introduce virtqueue_discard()

This patch introduces virtqueue_discard() to discard a descriptor and
unmap the sgs. This will be used by the patch that will discard
descriptor when packet is truncated.

Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.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