[dpdk-dev] In DPDK 1.7.1, the link status of the interface using virtio driver is always down.
Ouyang, Changchun
changchun.ouyang at intel.com
Mon Dec 15 04:25:15 CET 2014
Hi Weiyi,
Thanks for updating.
> -----Original Message-----
> From: Fu, Weiyi (NSN - CN/Hangzhou) [mailto:weiyi.fu at nsn.com]
> Sent: Monday, December 15, 2014 10:56 AM
> To: Fu, Weiyi (NSN - CN/Hangzhou); Ouyang, Changchun; dev at dpdk.org
> Cc: mmvijay at gmail.com
> Subject: RE: [dpdk-dev] In DPDK 1.7.1, the link status of the interface using
> virtio driver is always down.
>
> Hi,
> With follow changes, the link is UP and interface can receive and send traffic.
> Thanks a lot:)
>
> diff --git a/lib/librte_pmd_virtio/virtio_ethdev.c
> b/lib/librte_pmd_virtio/virtio_ethdev.c
> index 3344ffb..43d1c19 100644
> --- a/lib/librte_pmd_virtio/virtio_ethdev.c
> +++ b/lib/librte_pmd_virtio/virtio_ethdev.c
> @@ -784,6 +784,7 @@ eth_virtio_dev_init(__rte_unused struct eth_driver
> *eth_drv,
> }
> #endif
> hw->use_msix = virtio_has_msix(&pci_dev->addr);
> + hw->use_msix = 1;
Use constant is not a good fix, maybe you can have a solid fix for this,
Check how it can find the msix information on your environment, and then
You may change some codes inside function virtio_has_msix to let it also
Work in your environment even without " hw->use_msix = 1".
Thanks
Changchun
More information about the dev
mailing list