[dpdk-dev] In DPDK 1.7.1, the link status of the interface using virtio driver is always down.

Fu, Weiyi (NSN - CN/Hangzhou) weiyi.fu at nsn.com
Mon Dec 15 08:00:00 CET 2014


Hi Changchun,
Yes, we are trying add some startup parameter when we create VM. But unfortunately our Guest OS kernel version is too low, it can't work.

# uname -r
2.6.34.13-WR4.3.fp_x86_64_standard-00027-g76285ab
 

Brs,
Fu Weiyi

-----Original Message-----
From: ext Ouyang, Changchun [mailto:changchun.ouyang at intel.com] 
Sent: Monday, December 15, 2014 11:25 AM
To: Fu, Weiyi (NSN - CN/Hangzhou); dev at dpdk.org
Cc: mmvijay at gmail.com; Ouyang, Changchun
Subject: RE: [dpdk-dev] In DPDK 1.7.1, the link status of the interface using virtio driver is always down.

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