All of lore.kernel.org
 help / color / mirror / Atom feed
* Port 0 Link Down - L2fwd sample application
@ 2016-04-07 12:50 Vivek Gupta
  2016-04-07 12:57 ` Marc Sune
  0 siblings, 1 reply; 5+ messages in thread
From: Vivek Gupta @ 2016-04-07 12:50 UTC (permalink / raw)
  To: dev

Hi

I have binded eth0 and eth1 with DPDK and then tried to run the l2fwd example as below

./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>


Thanks & Regards
Vivek Gupta


::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and other defects.

----------------------------------------------------------------------------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Port 0 Link Down - L2fwd sample application
  2016-04-07 12:50 Port 0 Link Down - L2fwd sample application Vivek Gupta
@ 2016-04-07 12:57 ` Marc Sune
  2016-04-07 13:18   ` Vivek Gupta
  0 siblings, 1 reply; 5+ messages in thread
From: Marc Sune @ 2016-04-07 12:57 UTC (permalink / raw)
  To: Vivek Gupta; +Cc: dev

2016-04-07 14:50 GMT+02:00 Vivek Gupta <vivek-g@hcl.com>:

> Hi
>
> I have binded eth0 and eth1 with DPDK and then tried to run the l2fwd
> example as below
>
> ./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>
>
>
> Thanks & Regards
> Vivek Gupta
>

In which commit or version are you?

Marc


>
>
> ::DISCLAIMER::
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and
> intended for the named recipient(s) only.
> E-mail transmission is not guaranteed to be secure or error-free as
> information could be intercepted, corrupted,
> lost, destroyed, arrive late or incomplete, or may contain viruses in
> transmission. The e mail and its contents
> (with or without referred errors) shall therefore not attach any liability
> on the originator or HCL or its affiliates.
> Views or opinions, if any, presented in this email are solely those of the
> author and may not necessarily reflect the
> views or opinions of HCL or its affiliates. Any form of reproduction,
> dissemination, copying, disclosure, modification,
> distribution and / or publication of this message without the prior
> written consent of authorized representative of
> HCL is strictly prohibited. If you have received this email in error
> please delete it and notify the sender immediately.
> Before opening any email and/or attachments, please check them for viruses
> and other defects.
>
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Port 0 Link Down - L2fwd sample application
  2016-04-07 12:57 ` Marc Sune
@ 2016-04-07 13:18   ` Vivek Gupta
  2016-04-08  1:21     ` Lu, Wenzhuo
  0 siblings, 1 reply; 5+ messages in thread
From: Vivek Gupta @ 2016-04-07 13:18 UTC (permalink / raw)
  To: Marc Sune; +Cc: dev

I have installed DPDK 2.2 version and didn’t build source coe.

From: Marc Sune [mailto:marcdevel@gmail.com]
Sent: Thursday, April 07, 2016 6:27 PM
To: Vivek Gupta <vivek-g@hcl.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] Port 0 Link Down - L2fwd sample application



2016-04-07 14:50 GMT+02:00 Vivek Gupta <vivek-g@hcl.com<mailto:vivek-g@hcl.com>>:
Hi

I have binded eth0 and eth1 with DPDK and then tried to run the l2fwd example as below

./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>


Thanks & Regards
Vivek Gupta

In which commit or version are you?

Marc



::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and other defects.

----------------------------------------------------------------------------------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Port 0 Link Down - L2fwd sample application
  2016-04-07 13:18   ` Vivek Gupta
@ 2016-04-08  1:21     ` Lu, Wenzhuo
  2016-04-08  2:42       ` Jianbo Liu
  0 siblings, 1 reply; 5+ messages in thread
From: Lu, Wenzhuo @ 2016-04-08  1:21 UTC (permalink / raw)
  To: Vivek Gupta, Marc Sune; +Cc: dev

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
> 
> I have installed DPDK 2.2 version and didn’t build source coe.
The info is too limited, I cannot figure out what you're doing.
1, Confused, you didn't build the source code, so how you install DPDK?
2, Don't know the topology. Please make sure the connection is ready.
3, Would you like to try igb_uio? Normally we're using this one.

> 
> From: Marc Sune [mailto:marcdevel@gmail.com]
> Sent: Thursday, April 07, 2016 6:27 PM
> To: Vivek Gupta <vivek-g@hcl.com>
> Cc: dev@dpdk.org
> Subject: Re: [dpdk-dev] Port 0 Link Down - L2fwd sample application
> 
> 
> 
> 2016-04-07 14:50 GMT+02:00 Vivek Gupta <vivek-g@hcl.com<mailto:vivek-
> g@hcl.com>>:
> Hi
> 
> I have binded eth0 and eth1 with DPDK and then tried to run the l2fwd example
> as below
> 
> ./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>
> 
> 
> Thanks & Regards
> Vivek Gupta
> 
> In which commit or version are you?
> 
> Marc
> 
> 
> 
> ::DISCLAIMER::
> --------------------------------------------------------------------------------------------------
> --------------------------------------------------
> 
> The contents of this e-mail and any attachment(s) are confidential and intended
> for the named recipient(s) only.
> E-mail transmission is not guaranteed to be secure or error-free as information
> could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
> may contain viruses in transmission. The e mail and its contents (with or without
> referred errors) shall therefore not attach any liability on the originator or HCL
> or its affiliates.
> Views or opinions, if any, presented in this email are solely those of the author
> and may not necessarily reflect the views or opinions of HCL or its affiliates. Any
> form of reproduction, dissemination, copying, disclosure, modification,
> distribution and / or publication of this message without the prior written
> consent of authorized representative of HCL is strictly prohibited. If you have
> received this email in error please delete it and notify the sender immediately.
> Before opening any email and/or attachments, please check them for viruses
> and other defects.
> 
> --------------------------------------------------------------------------------------------------
> --------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Port 0 Link Down - L2fwd sample application
  2016-04-08  1:21     ` Lu, Wenzhuo
@ 2016-04-08  2:42       ` Jianbo Liu
  0 siblings, 0 replies; 5+ messages in thread
From: Jianbo Liu @ 2016-04-08  2:42 UTC (permalink / raw)
  To: Lu, Wenzhuo; +Cc: Vivek Gupta, Marc Sune, dev

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-04-08  2:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-07 12:50 Port 0 Link Down - L2fwd sample application 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 is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.