]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commitdiff
virtio_pci: Fix misleading comment for queue vector
authorLiming Wu <liming.wu@jaguarmicro.com>
Thu, 31 Jul 2025 09:27:57 +0000 (17:27 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 26 Aug 2025 07:38:10 +0000 (03:38 -0400)
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>
drivers/virtio/virtio_pci_legacy_dev.c
drivers/virtio/virtio_pci_modern_dev.c

index 677d1f68bc9bf25aca2e3fb6e8df57eacc42daef..bbbf89c22880a5cd70de16301a5fae4ad0efa499 100644 (file)
@@ -140,9 +140,9 @@ EXPORT_SYMBOL_GPL(vp_legacy_set_status);
  * vp_legacy_queue_vector - set the MSIX vector for a specific virtqueue
  * @ldev: the legacy virtio-pci device
  * @index: queue index
- * @vector: the config vector
+ * @vector: the queue vector
  *
- * Returns the config vector read from the device
+ * Returns the queue vector read from the device
  */
 u16 vp_legacy_queue_vector(struct virtio_pci_legacy_device *ldev,
                           u16 index, u16 vector)
index d665f8f73ea86306376b4c776de2db3de95218a1..9e503b7a58d8131ce12304f953893d1217d94560 100644 (file)
@@ -546,9 +546,9 @@ EXPORT_SYMBOL_GPL(vp_modern_set_queue_reset);
  * vp_modern_queue_vector - set the MSIX vector for a specific virtqueue
  * @mdev: the modern virtio-pci device
  * @index: queue index
- * @vector: the config vector
+ * @vector: the queue vector
  *
- * Returns the config vector read from the device
+ * Returns the queue vector read from the device
  */
 u16 vp_modern_queue_vector(struct virtio_pci_modern_device *mdev,
                           u16 index, u16 vector)