]> git.ipfire.org Git - thirdparty/linux.git/commit
virtio_ring: factor out core logic for updating last_used_idx
authorJason Wang <jasowang@redhat.com>
Tue, 30 Dec 2025 06:46:46 +0000 (14:46 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 31 Dec 2025 10:39:18 +0000 (05:39 -0500)
commitfa56d17b9241394aaa77ee622b72a1b765a48d6e
tree76ee06406c19fe7b38eb0a264272e0c6a66d1668
parentc623106c79c811816614dcb687ed5d08b25d5fe5
virtio_ring: factor out core logic for updating last_used_idx

Factor out the core logic for updating last_used_idx to be reused by
the packed 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>
Tested-by: Lei Yang <leiyang@redhat.com>
Reviewed-by: Eugenio Pérez <eperezma@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20251230064649.55597-17-jasowang@redhat.com>
drivers/virtio/virtio_ring.c