From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from demumfd002.nsn-inter.net (demumfd002.nsn-inter.net [93.183.12.31]) by dpdk.org (Postfix) with ESMTP id 87FBE7EB0 for ; Mon, 15 Dec 2014 08:01:17 +0100 (CET) Received: from demuprx017.emea.nsn-intra.net ([10.150.129.56]) by demumfd002.nsn-inter.net (8.14.3/8.14.3) with ESMTP id sBF71HE7013473 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 15 Dec 2014 07:01:17 GMT Received: from SGSIHTC004.nsn-intra.net ([10.159.225.21]) by demuprx017.emea.nsn-intra.net (8.12.11.20060308/8.12.11) with ESMTP id sBF70A53004643 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 15 Dec 2014 08:01:16 +0100 Received: from SGSIMBX001.nsn-intra.net ([169.254.1.131]) by SGSIHTC004.nsn-intra.net ([10.159.225.21]) with mapi id 14.03.0195.001; Mon, 15 Dec 2014 15:00:01 +0800 From: "Fu, Weiyi (NSN - CN/Hangzhou)" To: "ext Ouyang, Changchun" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] In DPDK 1.7.1, the link status of the interface using virtio driver is always down. Thread-Index: AQHQFRoVfrrffY6AGUCV6tB+0HXMP5yKEnVAgAAxdTCAAFnNAIAAlTsQgATGo1D//4OWgIAAv/jg Date: Mon, 15 Dec 2014 07:00:00 +0000 Message-ID: <2680B515A539A446ACBEC0EBBDEC3DF80E938979@SGSIMBX001.nsn-intra.net> References: <2680B515A539A446ACBEC0EBBDEC3DF80E938312@SGSIMBX001.nsn-intra.net> <2680B515A539A446ACBEC0EBBDEC3DF80E938465@SGSIMBX001.nsn-intra.net> <2680B515A539A446ACBEC0EBBDEC3DF80E9388D2@SGSIMBX001.nsn-intra.net> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.159.42.156] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-size: 1837 X-purgate-ID: 151667::1418626877-0000677A-F57C3865/0/0 Subject: Re: [dpdk-dev] In DPDK 1.7.1, the link status of the interface using virtio driver is always down. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2014 07:01:17 -0000 Hi Changchun, Yes, we are trying add some startup parameter when we create VM. But unfort= unately 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 =20 Brs, Fu Weiyi -----Original Message----- From: ext Ouyang, Changchun [mailto:changchun.ouyang@intel.com]=20 Sent: Monday, December 15, 2014 11:25 AM To: Fu, Weiyi (NSN - CN/Hangzhou); dev@dpdk.org Cc: mmvijay@gmail.com; Ouyang, Changchun Subject: RE: [dpdk-dev] In DPDK 1.7.1, the link status of the interface usi= ng virtio driver is always down. Hi Weiyi, Thanks for updating. > -----Original Message----- > From: Fu, Weiyi (NSN - CN/Hangzhou) [mailto:weiyi.fu@nsn.com] > Sent: Monday, December 15, 2014 10:56 AM > To: Fu, Weiyi (NSN - CN/Hangzhou); Ouyang, Changchun; dev@dpdk.org > Cc: mmvijay@gmail.com > Subject: RE: [dpdk-dev] In DPDK 1.7.1, the link status of the interface u= sing > virtio driver is always down. >=20 > Hi, > With follow changes, the link is UP and interface can receive and send tr= affic. > Thanks a lot:) >=20 > 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 =3D virtio_has_msix(&pci_dev->addr); > + hw->use_msix =3D 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 =3D 1". Thanks Changchun