Skip to content

Commit a39d13e

Browse files
Liming Wumstsirkin
authored andcommitted
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>
1 parent 1b237f1 commit a39d13e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/virtio/virtio_pci_legacy_dev.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ EXPORT_SYMBOL_GPL(vp_legacy_set_status);
140140
* vp_legacy_queue_vector - set the MSIX vector for a specific virtqueue
141141
* @ldev: the legacy virtio-pci device
142142
* @index: queue index
143-
* @vector: the config vector
143+
* @vector: the queue vector
144144
*
145-
* Returns the config vector read from the device
145+
* Returns the queue vector read from the device
146146
*/
147147
u16 vp_legacy_queue_vector(struct virtio_pci_legacy_device *ldev,
148148
u16 index, u16 vector)

drivers/virtio/virtio_pci_modern_dev.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,9 +546,9 @@ EXPORT_SYMBOL_GPL(vp_modern_set_queue_reset);
546546
* vp_modern_queue_vector - set the MSIX vector for a specific virtqueue
547547
* @mdev: the modern virtio-pci device
548548
* @index: queue index
549-
* @vector: the config vector
549+
* @vector: the queue vector
550550
*
551-
* Returns the config vector read from the device
551+
* Returns the queue vector read from the device
552552
*/
553553
u16 vp_modern_queue_vector(struct virtio_pci_modern_device *mdev,
554554
u16 index, u16 vector)

0 commit comments

Comments
 (0)