DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Fu, Weiyi (NSN - CN/Hangzhou)" <weiyi.fu@nsn.com>
To: "Fu, Weiyi (NSN - CN/Hangzhou)" <weiyi.fu@nsn.com>,
	"ext Ouyang, Changchun" <changchun.ouyang@intel.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] In DPDK 1.7.1, the link status of the interface using virtio driver is always down.
Date: Mon, 15 Dec 2014 02:55:49 +0000	[thread overview]
Message-ID: <2680B515A539A446ACBEC0EBBDEC3DF80E9388D2@SGSIMBX001.nsn-intra.net> (raw)
In-Reply-To: <F52918179C57134FAEC9EA62FA2F962511945B8E@shsmsx102.ccr.corp.intel.com>

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;
        hw->io_base = (uint32_t)(uintptr_t)pci_dev->mem_resource[0].addr;

        /* Reset the device although not necessary at startup */

Brs,
Fu Weiyi

-----Original Message-----
From: Fu, Weiyi (NSN - CN/Hangzhou) 
Sent: Friday, December 12, 2014 9:57 AM
To: 'ext Ouyang, Changchun'; dev@dpdk.org
Cc: 'mmvijay@gmail.com'
Subject: RE: [dpdk-dev] In DPDK 1.7.1, the link status of the interface using virtio driver is always down.

Hi,
I have ingnored the link status. Rx and tx can't work.
I will try the methods Vijay suggested to have a try. Thanks! 

Brs,
Fu Weiyi

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

Hi 

> -----Original Message-----
> From: Fu, Weiyi (NSN - CN/Hangzhou) [mailto:weiyi.fu@nsn.com]
> Sent: Thursday, December 11, 2014 7:42 PM
> To: Fu, Weiyi (NSN - CN/Hangzhou); Ouyang, Changchun; dev@dpdk.org
> Subject: RE: [dpdk-dev] In DPDK 1.7.1, the link status of the interface using
> virtio driver is always down.
> 
> Hi Changchun,
> I found you had done follow change to allow the virtio interface startup
> when the link is down.  Is there any scenario causing link down for virtio
> interface?
> 
Not really in my environment, those codes are RFC codes from Brocade,
Not merged into mainline yet. 

You can apply this patch and ignore the link state to see if rx and tx still works.

Thanks
Changchun

  parent reply	other threads:[~2014-12-15  2:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-11  7:57 Fu, Weiyi (NSN - CN/Hangzhou)
2014-12-11  8:11 ` Ouyang, Changchun
2014-12-11  8:42   ` Fu, Weiyi (NSN - CN/Hangzhou)
2014-12-11 11:41   ` Fu, Weiyi (NSN - CN/Hangzhou)
2014-12-11 13:41     ` Vijayakumar Muthuvel Manickam
2014-12-12  1:00     ` Ouyang, Changchun
2014-12-12  1:57       ` Fu, Weiyi (NSN - CN/Hangzhou)
2014-12-15  2:55       ` Fu, Weiyi (NSN - CN/Hangzhou) [this message]
2014-12-15  3:25         ` Ouyang, Changchun
2014-12-15  7:00           ` Fu, Weiyi (NSN - CN/Hangzhou)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2680B515A539A446ACBEC0EBBDEC3DF80E9388D2@SGSIMBX001.nsn-intra.net \
    --to=weiyi.fu@nsn.com \
    --cc=changchun.ouyang@intel.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).