DPDK patches and discussions
 help / color / mirror / Atom feed
From: Jianbo Liu <jianbo.liu@linaro.org>
To: "Lu, Wenzhuo" <wenzhuo.lu@intel.com>
Cc: Vivek Gupta <vivek-g@hcl.com>, Marc Sune <marcdevel@gmail.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] Port 0 Link Down - L2fwd sample application
Date: Fri, 8 Apr 2016 10:42:06 +0800	[thread overview]
Message-ID: <CAP4Qi39eczLsAExq36epCsppYejMcGzL2Kvhh97nau4gF0Z7xg@mail.gmail.com> (raw)
In-Reply-To: <6A0DE07E22DDAD4C9103DF62FEBC0909034503AE@shsmsx102.ccr.corp.intel.com>

On 8 April 2016 at 09:21, Lu, Wenzhuo <wenzhuo.lu@intel.com> wrote:
> Hi Vivek,
>
>
>> -----Original Message-----
>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Vivek Gupta
>> Sent: Thursday, April 7, 2016 9:19 PM
>> To: Marc Sune
>> Cc: dev@dpdk.org
>> Subject: Re: [dpdk-dev] Port 0 Link Down - L2fwd sample application
>>

>>
>> ./build/l2fwd -c f -n 4 -- -q 8 -p 0x11  but each time I get error
>> *****************************
>> Checking link status..............
>> Port 0 Link Down
>> Port 1 Link Down
>> ********************************************
>>
>> I tried with test-pmd example but same result.Could you please help to up the
>> link?
>>
>> Port status is as below-
>> Network devices using DPDK-compatible driver
>> ============================================
>> 0000:01:00.0 'Ethernet Controller 10-Gigabit X540-AT2' drv=uio_pci_generic
>> unused=igb_uio
>> 0000:01:00.1 'Ethernet Controller 10-Gigabit X540-AT2' drv=uio_pci_generic
>> unused=igb_uio
>> 0000:06:00.0 'Ethernet Controller 10-Gigabit X540-AT2' drv=uio_pci_generic
>> unused=igb_uio
>> 0000:06:00.1 'Ethernet Controller 10-Gigabit X540-AT2' drv=uio_pci_generic
>> unused=igb_uio
>>
>> Network devices using kernel driver
>> ===================================
>> 0000:81:00.0 'Ethernet Controller 10-Gigabit X540-AT2' if=eth4 drv=ixgbe
>> unused=igb_uio,uio_pci_generic
>> 0000:81:00.1 'Ethernet Controller 10-Gigabit X540-AT2' if=eth5 drv=ixgbe
>> unused=igb_uio,uio_pci_generic
>>
>> Other network devices
>> =====================
>> <none>
>>

I met the same problem with the same NICs.
Please try this patch:

diff --git a/drivers/net/ixgbe/base/ixgbe_x540.c
b/drivers/net/ixgbe/base/ixgbe_x540.c
index 4891702..cd09e38 100644
--- a/drivers/net/ixgbe/base/ixgbe_x540.c
+++ b/drivers/net/ixgbe/base/ixgbe_x540.c
@@ -220,7 +220,7 @@ s32 ixgbe_reset_hw_X540(struct ixgbe_hw *hw)
     ixgbe_clear_tx_pending(hw);

 mac_reset_top:
-    ctrl = IXGBE_CTRL_RST;
+    ctrl = IXGBE_CTRL_RST_MASK;
     ctrl |= IXGBE_READ_REG(hw, IXGBE_CTRL);
     IXGBE_WRITE_REG(hw, IXGBE_CTRL, ctrl);
     IXGBE_WRITE_FLUSH(hw);

Thanks!
Jianbo

      reply	other threads:[~2016-04-08  2:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-07 12:50 Vivek Gupta
2016-04-07 12:57 ` Marc Sune
2016-04-07 13:18   ` Vivek Gupta
2016-04-08  1:21     ` Lu, Wenzhuo
2016-04-08  2:42       ` Jianbo Liu [this message]

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=CAP4Qi39eczLsAExq36epCsppYejMcGzL2Kvhh97nau4gF0Z7xg@mail.gmail.com \
    --to=jianbo.liu@linaro.org \
    --cc=dev@dpdk.org \
    --cc=marcdevel@gmail.com \
    --cc=vivek-g@hcl.com \
    --cc=wenzhuo.lu@intel.com \
    /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).