From: Xiaolong Ye Date: Sat, 7 Mar 2020 13:22:34 +0000 (+0800) Subject: net/virtio: fix outdated comment X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f6ac14f13b040fb44db6ed4ab392865fb6648201;p=dpdk.git net/virtio: fix outdated comment Fix comment that is no more correct as the code evolved. Fixes: 9470427c88e1 ("net/virtio: do not store PCI device pointer at shared memory") Cc: stable@dpdk.org Signed-off-by: Xiaolong Ye Reviewed-by: Maxime Coquelin --- diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index f9d0ea70db..35203940a7 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -466,7 +466,7 @@ virtio_init_queue(struct rte_eth_dev *dev, uint16_t vtpci_queue_idx) } if (!vtpci_packed_queue(hw) && !rte_is_power_of_2(vq_size)) { - PMD_INIT_LOG(ERR, "split virtqueue size is not powerof 2"); + PMD_INIT_LOG(ERR, "split virtqueue size is not power of 2"); return -EINVAL; } @@ -588,8 +588,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)