virtio-ring: maintain next in extra state for packed virtqueue
authorJason Wang <jasowang@redhat.com>
Fri, 4 Jun 2021 05:53:44 +0000 (13:53 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 8 Jul 2021 11:49:01 +0000 (07:49 -0400)
commitaeef9b4733c5c2356c75ba4f5c99e1a09ff1721d
treedf11b2919bb51dbd72c1635add457610f6f47a54
parente3aadf2e1614174dc81d52cbb9dabb77913b11c6
virtio-ring: maintain next in extra state for packed virtqueue

This patch moves next from vring_desc_state_packed to
vring_desc_desc_extra_packed. This makes it simpler to let extra state
to be reused by split virtqueue.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20210604055350.58753-2-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_ring.c