]> www.infradead.org Git - users/jedix/linux-maple.git/commit
virtio: introduce virtio_queue_info struct and find_vqs_info() config op
authorJiri Pirko <jiri@nvidia.com>
Mon, 8 Jul 2024 07:47:59 +0000 (09:47 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 17 Jul 2024 09:20:57 +0000 (05:20 -0400)
commitc502eb85c34e29bb185e3d15dd9b8fce8a74f303
tree931d0922cd5e1cabfa6df26d918f3c3f0140d70d
parent959538c11a88298672195a0eb3289c0f2f88b02d
virtio: introduce virtio_queue_info struct and find_vqs_info() config op

Introduce a structure virtio_queue_info to carry name, callback and ctx
together. In order to allow config implementations to accept config op
with array of virtio_queue_info structures, introduce a new
find_vqs_info() op. Do the needed conversion in virtio_find_vqs_ctx().
Note that whole virtio_find_vqs_ctx() is going to be eventually removed
at the and of this patchset.

Suggested-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Message-Id: <20240708074814.1739223-5-jiri@resnulli.us>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/linux/virtio_config.h