Skip to content

Commit

Permalink
net/virtio: fix outdated comment
Browse files Browse the repository at this point in the history
[ upstream commit f6ac14f ]

Fix comment that is no more correct as the code evolved.

Fixes: 9470427 ("net/virtio: do not store PCI device pointer at shared memory")

Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
  • Loading branch information
0day-trouble-maker authored and kevintraynor committed May 27, 2020
1 parent a99aae6 commit 84edbc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/virtio/virtio_ethdev.c
Expand Up @@ -349,7 +349,7 @@ virtio_init_queue(struct rte_eth_dev *dev, uint16_t vtpci_queue_idx)
}

if (!rte_is_power_of_2(vq_size)) {
PMD_INIT_LOG(ERR, "virtqueue size is not powerof 2");
PMD_INIT_LOG(ERR, "virtqueue size is not power of 2");
return -EINVAL;
}

Expand Down Expand Up @@ -464,8 +464,8 @@ virtio_init_queue(struct rte_eth_dev *dev, uint16_t vtpci_queue_idx)
hw->cvq = cvq;
}

/* For virtio_user case (that is when hw->dev is NULL), we use
* virtual address. And we need properly set _offset_, please see
/* For virtio_user case (that is when hw->virtio_user_dev is not NULL),
* we use virtual address. And we need properly set _offset_, please see
* VIRTIO_MBUF_DATA_DMA_ADDR in virtqueue.h for more information.
*/
if (!hw->virtio_user_dev)
Expand Down

0 comments on commit 84edbc7

Please sign in to comment.