]> git.ipfire.org Git - thirdparty/linux.git/commit
virtio_ring: determine descriptor flags at one time
authorJason Wang <jasowang@redhat.com>
Tue, 30 Dec 2025 06:46:44 +0000 (14:46 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 31 Dec 2025 10:39:18 +0000 (05:39 -0500)
commit03f05c4eeb7bc5019deb25f7415a7af8dc3fdd3f
treeaaa28eff7cd7902a68497966a6a31b5369701701
parent1208473f9b5eb273e787bb1b07a4b2a323692a10
virtio_ring: determine descriptor flags at one time

Let's determine the last descriptor by counting the number of sg. This
would be consistent with packed virtqueue implementation and ease the
future in-order implementation.

Acked-by: Eugenio Pérez <eperezma@redhat.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20251230064649.55597-15-jasowang@redhat.com>
drivers/virtio/virtio_ring.c