All of lore.kernel.org
 help / color / mirror / Atom feed
* Cannot run l3fwd with the problem of " nb_tx_queues"
@ 2013-11-14  5:21 yuxuan zhang
       [not found] ` <CADsvVhmQ3VeXVCpF-XXVCpvdGvaivtYxbRR4o7qkqLSW4tW6fA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: yuxuan zhang @ 2013-11-14  5:21 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

 Hi Everyone:

I meet a problem with running the DPDK1.3 example l3fwd in the VMware. I
have two 82545EM NIC to run the l3fwd and the OS is Cent6.4. But l3fwd
cannot be configured port correctly .I start the l3fwd with following
command:

    ./build/l3fwd  -c 0x3 -n 2 -- -p 0x3 --config="(0,0,0),(1,0,1)"

However, I get following errors with debug info:

    Initializing port 0 ... Creating queues: nb_rxq=1 nb_txq=2... PMD:
rte_eth_dev_configure: ethdev     port_id=0 nb_tx_queues=2 > 1
    EAL: Error - exiting with code: 1
    Cause: Cannot configure device: err=-22, port=0

And I have known that the reason for this problem produced in the
**rte_eth_dev_configure function**. However, I do not kown how to fix it.

I would really appreciate If someone could provide some help to solve this
issue.

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

* Re: Cannot run l3fwd with the problem of " nb_tx_queues"
       [not found] ` <CADsvVhmQ3VeXVCpF-XXVCpvdGvaivtYxbRR4o7qkqLSW4tW6fA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-11-14  8:31   ` Jose Gavine Cueto
       [not found]     ` <CAJ5bv6FaOB4JGe_CfD6C74V6DJAvd1dTDjr4yExVnmp4uJDu-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Jose Gavine Cueto @ 2013-11-14  8:31 UTC (permalink / raw)
  To: yuxuan zhang; +Cc: dev-VfR2kkLFssw

Hi,

Your nic (port 0) is capable of 1 txq only see error:

" port_id=0 nb_tx_queues=2 > 1"

I think that caused the error.

Cheers,
Pepe


On Thu, Nov 14, 2013 at 1:21 PM, yuxuan zhang <zhangyuxuanxd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:

>  Hi Everyone:
>
> I meet a problem with running the DPDK1.3 example l3fwd in the VMware. I
> have two 82545EM NIC to run the l3fwd and the OS is Cent6.4. But l3fwd
> cannot be configured port correctly .I start the l3fwd with following
> command:
>
>     ./build/l3fwd  -c 0x3 -n 2 -- -p 0x3 --config="(0,0,0),(1,0,1)"
>
> However, I get following errors with debug info:
>
>     Initializing port 0 ... Creating queues: nb_rxq=1 nb_txq=2... PMD:
> rte_eth_dev_configure: ethdev     port_id=0 nb_tx_queues=2 > 1
>     EAL: Error - exiting with code: 1
>     Cause: Cannot configure device: err=-22, port=0
>
> And I have known that the reason for this problem produced in the
> **rte_eth_dev_configure function**. However, I do not kown how to fix it.
>
> I would really appreciate If someone could provide some help to solve this
> issue.
>



-- 
To stop learning is like to stop loving.

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

* Re: Cannot run l3fwd with the problem of " nb_tx_queues"
       [not found]     ` <CAJ5bv6FaOB4JGe_CfD6C74V6DJAvd1dTDjr4yExVnmp4uJDu-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-11-27 10:58       ` Zachary.Jen (簡汶翰) : 6305
       [not found]         ` <5295CFA4.1060100-hquedaq+nxtWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Zachary.Jen (簡汶翰) : 6305 @ 2013-11-27 10:58 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

Hi,

I also have the same question in l3fwd example.
I guess may DPDK don't support the chip-set so that we got this error msg.

In my system, I have 2 kinds of chip-set, 82580 & 82574L.
If I use l3fwd -c 3 -n 1 -- -p 3 --config '(0,0,0),(1,0,1)' in 82574L,
it will get the error msg.
But when I change my card with 82580 and use the same command to execute
DPDK l3fwd.
It's working.

So, maybe the root cause is the DPDK does not support your chip-set and
send out this error msg.

On 11/14/2013 04:31 PM, Jose Gavine Cueto wrote:
> Hi,
>
> Your nic (port 0) is capable of 1 txq only see error:
>
> " port_id=0 nb_tx_queues=2 > 1"
>
> I think that caused the error.
>
> Cheers,
> Pepe
>
>
> On Thu, Nov 14, 2013 at 1:21 PM, yuxuan zhang <zhangyuxuanxd@gmail.com>wrote:
>
>>   Hi Everyone:
>>
>> I meet a problem with running the DPDK1.3 example l3fwd in the VMware. I
>> have two 82545EM NIC to run the l3fwd and the OS is Cent6.4. But l3fwd
>> cannot be configured port correctly .I start the l3fwd with following
>> command:
>>
>>      ./build/l3fwd  -c 0x3 -n 2 -- -p 0x3 --config="(0,0,0),(1,0,1)"
>>
>> However, I get following errors with debug info:
>>
>>      Initializing port 0 ... Creating queues: nb_rxq=1 nb_txq=2... PMD:
>> rte_eth_dev_configure: ethdev     port_id=0 nb_tx_queues=2 > 1
>>      EAL: Error - exiting with code: 1
>>      Cause: Cannot configure device: err=-22, port=0
>>
>> And I have known that the reason for this problem produced in the
>> **rte_eth_dev_configure function**. However, I do not kown how to fix it.
>>
>> I would really appreciate If someone could provide some help to solve this
>> issue.
>>
>
>

--
Best Regards,
Zachary
本信件可能包含瑞祺電通機密資訊,非指定之收件者,請勿使用或揭露本信件內容,並請銷毀此信件。 This email may contain confidential information. Please do not use or disclose it in any way and delete it if you are not the intended recipient.

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

* Re: Cannot run l3fwd with the problem of " nb_tx_queues"
       [not found]         ` <5295CFA4.1060100-hquedaq+nxtWk0Htik3J/w@public.gmane.org>
@ 2013-11-27 11:04           ` Thomas Monjalon
  2013-11-27 11:05           ` Jose Gavine Cueto
  1 sibling, 0 replies; 6+ messages in thread
From: Thomas Monjalon @ 2013-11-27 11:04 UTC (permalink / raw)
  To: Zachary.Jen (簡汶翰) : 6305; +Cc: dev-VfR2kkLFssw

Hello,

27/11/2013 11:58, Zachary.Jen (簡汶翰) : 6305 :
> I also have the same question in l3fwd example.
> I guess may DPDK don't support the chip-set so that we got this error msg.
> 
> In my system, I have 2 kinds of chip-set, 82580 & 82574L.
> If I use l3fwd -c 3 -n 1 -- -p 3 --config '(0,0,0),(1,0,1)' in 82574L,
> it will get the error msg.
> But when I change my card with 82580 and use the same command to execute
> DPDK l3fwd.
> It's working.
> 
> So, maybe the root cause is the DPDK does not support your chip-set and
> send out this error msg.

No, it's only a problem of hardware queues availability.
82574 has only 1 queue.

-- 
Thomas

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

* Re: Cannot run l3fwd with the problem of " nb_tx_queues"
       [not found]         ` <5295CFA4.1060100-hquedaq+nxtWk0Htik3J/w@public.gmane.org>
  2013-11-27 11:04           ` Thomas Monjalon
@ 2013-11-27 11:05           ` Jose Gavine Cueto
       [not found]             ` <CAJ5bv6FHW3UAtNDsQ_JGgOnCPjahXvFfsws4R=v_ObRxDBXqDA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  1 sibling, 1 reply; 6+ messages in thread
From: Jose Gavine Cueto @ 2013-11-27 11:05 UTC (permalink / raw)
  To: Zachary.Jen (簡汶翰) : 6305; +Cc: dev-VfR2kkLFssw

Hi yuxuan,

Yes, by experience I've successfully run dpdk with a virtualbox vm using an
e1000 NIC.  I'm not totally sure about the capabilities of the e1000 NIC
but based on the error you've mentioned, it seems that it can only support
1 TX queue.

"Now, I can use only one logic core to run the app and the performance of
l3fwd is undesirable."

This shows that dpdk can run successfully with 1 TX queue only because
probably your e1000 NIC only supports 1 queue.

Cheers,
Pepe


On Wed, Nov 27, 2013 at 6:58 PM, Zachary.Jen (簡汶翰) : 6305 <
Zachary.Jen-hquedaq+nxtWk0Htik3J/w@public.gmane.org> wrote:

> Hi,
>
> I also have the same question in l3fwd example.
> I guess may DPDK don't support the chip-set so that we got this error msg.
>
> In my system, I have 2 kinds of chip-set, 82580 & 82574L.
> If I use l3fwd -c 3 -n 1 -- -p 3 --config '(0,0,0),(1,0,1)' in 82574L,
> it will get the error msg.
> But when I change my card with 82580 and use the same command to execute
> DPDK l3fwd.
> It's working.
>
> So, maybe the root cause is the DPDK does not support your chip-set and
> send out this error msg.
>
> On 11/14/2013 04:31 PM, Jose Gavine Cueto wrote:
> > Hi,
> >
> > Your nic (port 0) is capable of 1 txq only see error:
> >
> > " port_id=0 nb_tx_queues=2 > 1"
> >
> > I think that caused the error.
> >
> > Cheers,
> > Pepe
> >
> >
> > On Thu, Nov 14, 2013 at 1:21 PM, yuxuan zhang <zhangyuxuanxd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
> >wrote:
> >
> >>   Hi Everyone:
> >>
> >> I meet a problem with running the DPDK1.3 example l3fwd in the VMware. I
> >> have two 82545EM NIC to run the l3fwd and the OS is Cent6.4. But l3fwd
> >> cannot be configured port correctly .I start the l3fwd with following
> >> command:
> >>
> >>      ./build/l3fwd  -c 0x3 -n 2 -- -p 0x3 --config="(0,0,0),(1,0,1)"
> >>
> >> However, I get following errors with debug info:
> >>
> >>      Initializing port 0 ... Creating queues: nb_rxq=1 nb_txq=2... PMD:
> >> rte_eth_dev_configure: ethdev     port_id=0 nb_tx_queues=2 > 1
> >>      EAL: Error - exiting with code: 1
> >>      Cause: Cannot configure device: err=-22, port=0
> >>
> >> And I have known that the reason for this problem produced in the
> >> **rte_eth_dev_configure function**. However, I do not kown how to fix
> it.
> >>
> >> I would really appreciate If someone could provide some help to solve
> this
> >> issue.
> >>
> >
> >
>
> --
> Best Regards,
> Zachary
> 本信件可能包含瑞祺電通機密資訊,非指定之收件者,請勿使用或揭露本信件內容,並請銷毀此信件。 This email may contain
> confidential information. Please do not use or disclose it in any way and
> delete it if you are not the intended recipient.
>



-- 
To stop learning is like to stop loving.

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

* Re: Cannot run l3fwd with the problem of " nb_tx_queues"
       [not found]             ` <CAJ5bv6FHW3UAtNDsQ_JGgOnCPjahXvFfsws4R=v_ObRxDBXqDA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-11-27 12:49               ` yuxuan zhang
  0 siblings, 0 replies; 6+ messages in thread
From: yuxuan zhang @ 2013-11-27 12:49 UTC (permalink / raw)
  To: Zachary.Jen (��汶翰) : 6305; +Cc: dev-VfR2kkLFssw

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=GB2312, Size: 3392 bytes --]

  Hi,
The problem is that E1000 NIC only support 1 TX queue ,the dpdk will change
the max TX queue number in eth_em_infos_get() function the when you call
the rte_eth_dev_configure() function .If you want to run l3fwd program on
e1000 NIC correctly, you should modify the l3fwd by using only one TX queue
per lcore.


2013/11/27 Jose Gavine Cueto <pepedocs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

> Hi yuxuan,
>
> Yes, by experience I've successfully run dpdk with a virtualbox vm using an
> e1000 NIC.  I'm not totally sure about the capabilities of the e1000 NIC
> but based on the error you've mentioned, it seems that it can only support
> 1 TX queue.
>
> "Now, I can use only one logic core to run the app and the performance of
> l3fwd is undesirable."
>
>  This shows that dpdk can run successfully with 1 TX queue only because
> probably your e1000 NIC only supports 1 queue.
>
> Cheers,
> Pepe
>
>
> On Wed, Nov 27, 2013 at 6:58 PM, Zachary.Jen (º†ã뺲) : 6305 <
> Zachary.Jen-hquedaq+nxtWk0Htik3J/w@public.gmane.org> wrote:
>
> > Hi,
> >
> > I also have the same question in l3fwd example.
> > I guess may DPDK don't support the chip-set so that we got this error
> msg.
> >
> > In my system, I have 2 kinds of chip-set, 82580 & 82574L.
> > If I use l3fwd -c 3 -n 1 -- -p 3 --config '(0,0,0),(1,0,1)' in 82574L,
> > it will get the error msg.
> > But when I change my card with 82580 and use the same command to execute
> > DPDK l3fwd.
> > It's working.
> >
> > So, maybe the root cause is the DPDK does not support your chip-set and
> > send out this error msg.
> >
> > On 11/14/2013 04:31 PM, Jose Gavine Cueto wrote:
> > > Hi,
> > >
> > > Your nic (port 0) is capable of 1 txq only see error:
> > >
> > > " port_id=0 nb_tx_queues=2 > 1"
> > >
> > > I think that caused the error.
> > >
> > > Cheers,
> > > Pepe
> > >
> > >
> > > On Thu, Nov 14, 2013 at 1:21 PM, yuxuan zhang <zhangyuxuanxd-Re5JQEeQqe8@public.gmane.orgm
> > >wrote:
> > >
> > >>   Hi Everyone:
> > >>
> > >> I meet a problem with running the DPDK1.3 example l3fwd in the
> VMware. I
> > >> have two 82545EM NIC to run the l3fwd and the OS is Cent6.4. But l3fwd
> > >> cannot be configured port correctly .I start the l3fwd with following
> > >> command:
> > >>
> > >>      ./build/l3fwd  -c 0x3 -n 2 -- -p 0x3 --config="(0,0,0),(1,0,1)"
> > >>
> > >> However, I get following errors with debug info:
> > >>
> > >>      Initializing port 0 ... Creating queues: nb_rxq=1 nb_txq=2...
> PMD:
> > >> rte_eth_dev_configure: ethdev     port_id=0 nb_tx_queues=2 > 1
> > >>      EAL: Error - exiting with code: 1
> > >>      Cause: Cannot configure device: err=-22, port=0
> > >>
> > >> And I have known that the reason for this problem produced in the
> > >> **rte_eth_dev_configure function**. However, I do not kown how to fix
> > it.
> > >>
> > >> I would really appreciate If someone could provide some help to solve
> > this
> > >> issue.
> > >>
> > >
> > >
> >
> > --
> > Best Regards,
> > Zachary
> > ±¾Ðżþ¿ÉÄÜ°üº¬Èðì÷ëŠÍ¨™CÃÜÙYӍ£¬·ÇÖ¸¶¨Ö®ÊÕ¼þÕߣ¬ÕˆÎðʹÓûò½Ò¶±¾ÐżþƒÈÈÝ£¬KÕˆäNš§´ËÐżþ¡£ This email may contain
> > confidential information. Please do not use or disclose it in any way and
> > delete it if you are not the intended recipient.
> >
>
>
>
>   --
> To stop learning is like to stop loving.
>

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

end of thread, other threads:[~2013-11-27 12:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-14  5:21 Cannot run l3fwd with the problem of " nb_tx_queues" yuxuan zhang
     [not found] ` <CADsvVhmQ3VeXVCpF-XXVCpvdGvaivtYxbRR4o7qkqLSW4tW6fA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-14  8:31   ` Jose Gavine Cueto
     [not found]     ` <CAJ5bv6FaOB4JGe_CfD6C74V6DJAvd1dTDjr4yExVnmp4uJDu-g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-27 10:58       ` Zachary.Jen (簡汶翰) : 6305
     [not found]         ` <5295CFA4.1060100-hquedaq+nxtWk0Htik3J/w@public.gmane.org>
2013-11-27 11:04           ` Thomas Monjalon
2013-11-27 11:05           ` Jose Gavine Cueto
     [not found]             ` <CAJ5bv6FHW3UAtNDsQ_JGgOnCPjahXvFfsws4R=v_ObRxDBXqDA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-27 12:49               ` yuxuan zhang

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.