Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

virtio_pci: Fix misleading comment for queue vector

This patch fixes misleading comments in both legacy and modern
virtio-pci device implementations. The comments previously referred to
the "config vector" for parameters and return values of the
`vp_legacy_queue_vector()` and `vp_modern_queue_vector()` functions,
which is incorrect.

Signed-off-by: Liming Wu <liming.wu@jaguarmicro.com>
Message-Id: <20250731092757.1000-1-liming.wu@jaguarmicro.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

authored by

Liming Wu and committed by
Michael S. Tsirkin
a39d13e2 1b237f19

+4 -4
+2 -2
drivers/virtio/virtio_pci_legacy_dev.c
··· 140 140 * vp_legacy_queue_vector - set the MSIX vector for a specific virtqueue 141 141 * @ldev: the legacy virtio-pci device 142 142 * @index: queue index 143 - * @vector: the config vector 143 + * @vector: the queue vector 144 144 * 145 - * Returns the config vector read from the device 145 + * Returns the queue vector read from the device 146 146 */ 147 147 u16 vp_legacy_queue_vector(struct virtio_pci_legacy_device *ldev, 148 148 u16 index, u16 vector)
+2 -2
drivers/virtio/virtio_pci_modern_dev.c
··· 546 546 * vp_modern_queue_vector - set the MSIX vector for a specific virtqueue 547 547 * @mdev: the modern virtio-pci device 548 548 * @index: queue index 549 - * @vector: the config vector 549 + * @vector: the queue vector 550 550 * 551 - * Returns the config vector read from the device 551 + * Returns the queue vector read from the device 552 552 */ 553 553 u16 vp_modern_queue_vector(struct virtio_pci_modern_device *mdev, 554 554 u16 index, u16 vector)