* Can't allocate different number of TX and RX queues for single port of ixgbe NIC @ 2015-04-28 10:02 Pavel Odintsov [not found] ` <CALgsdbe9YTYxBCTo7Sp+No117dVqmJoKpwLo1NCiSnbK-G=zFQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Pavel Odintsov @ 2015-04-28 10:02 UTC (permalink / raw) To: dev-VfR2kkLFssw Hello, Network Performance Gurus! I have Debian Jessie with 3.16 kernel, DPDK 2.0.0 with ixgbe NIC. And I wrote following code: https://gist.github.com/pavel-odintsov/e1f64de4d56c0ab1b37c I try to allocate 2 queues for TX and only 1 queue for RX and I can't do it with error (detailed error message https://gist.github.com/pavel-odintsov/507cf7a082793f547120): PMD: ixgbe_dev_rx_queue_setup(): sw_ring=0x7f9e9dcdbc80 hw_ring=0x7f9e9dd41500 dma_addr=0x36b41500 PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f9e9dcd9b40 hw_ring=0x7f9e9dd51580 dma_addr=0x36b51580 PMD: ixgbe_set_tx_function(): Using simple tx code path PMD: ixgbe_set_tx_function(): Vector tx enabled. EAL: Error - exiting with code: 1 Cause: Can't configure TX queue 1 for port 0 I could fix this issue with allocation 2 queues for TX and 2 queues for RX. But it's useless for my aplication because I need multiple TX queue but could use only one RX and I want ability to specify different number of queues for NIC. Thank you so much! -- Sincerely yours, Pavel Odintsov ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <CALgsdbe9YTYxBCTo7Sp+No117dVqmJoKpwLo1NCiSnbK-G=zFQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Can't allocate different number of TX and RX queues for single port of ixgbe NIC [not found] ` <CALgsdbe9YTYxBCTo7Sp+No117dVqmJoKpwLo1NCiSnbK-G=zFQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-04-28 10:57 ` Vladimir Medvedkin [not found] ` <CANDrEHkPQJrCNz=a8hTQi=de0SF=JX_if7bU30qMU9Wqq4sjGQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Vladimir Medvedkin @ 2015-04-28 10:57 UTC (permalink / raw) To: Pavel Odintsov; +Cc: dev-VfR2kkLFssw@public.gmane.org Hi Pavel, I think mistake is here: -int eth_configure_ret = rte_eth_dev_configure(current_port, tx_queues, rx_queues, &default_port_conf); +int eth_configure_ret = rte_eth_dev_configure(current_port, rx_queues, tx_queues, &default_port_conf); according to http://dpdk.org/doc/api/rte__ethdev_8h.html#ac30d075b4b206c7122e200164ce69893 second arg is number of rx queues Regards, Vladimir 2015-04-28 13:02 GMT+03:00 Pavel Odintsov <pavel.odintsov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > Hello, Network Performance Gurus! > > I have Debian Jessie with 3.16 kernel, DPDK 2.0.0 with ixgbe NIC. And > I wrote following code: > https://gist.github.com/pavel-odintsov/e1f64de4d56c0ab1b37c > > I try to allocate 2 queues for TX and only 1 queue for RX and I can't > do it with error (detailed error message > https://gist.github.com/pavel-odintsov/507cf7a082793f547120): > PMD: ixgbe_dev_rx_queue_setup(): sw_ring=0x7f9e9dcdbc80 > hw_ring=0x7f9e9dd41500 dma_addr=0x36b41500 > PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f9e9dcd9b40 > hw_ring=0x7f9e9dd51580 dma_addr=0x36b51580 > PMD: ixgbe_set_tx_function(): Using simple tx code path > PMD: ixgbe_set_tx_function(): Vector tx enabled. > EAL: Error - exiting with code: 1 > Cause: Can't configure TX queue 1 for port 0 > > I could fix this issue with allocation 2 queues for TX and 2 queues > for RX. But it's useless for my aplication because I need multiple TX > queue but could use only one RX and I want ability to specify > different number of queues for NIC. > > Thank you so much! > > -- > Sincerely yours, Pavel Odintsov > ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <CANDrEHkPQJrCNz=a8hTQi=de0SF=JX_if7bU30qMU9Wqq4sjGQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Can't allocate different number of TX and RX queues for single port of ixgbe NIC [not found] ` <CANDrEHkPQJrCNz=a8hTQi=de0SF=JX_if7bU30qMU9Wqq4sjGQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-04-28 11:03 ` Pavel Odintsov 0 siblings, 0 replies; 3+ messages in thread From: Pavel Odintsov @ 2015-04-28 11:03 UTC (permalink / raw) To: Vladimir Medvedkin; +Cc: dev-VfR2kkLFssw@public.gmane.org Wow! Thank you so much :) It works fine now! On Tue, Apr 28, 2015 at 1:57 PM, Vladimir Medvedkin <medvedkinv-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Hi Pavel, > > I think mistake is here: > -int eth_configure_ret = rte_eth_dev_configure(current_port, tx_queues, > rx_queues, &default_port_conf); > +int eth_configure_ret = rte_eth_dev_configure(current_port, rx_queues, > tx_queues, &default_port_conf); > according to > http://dpdk.org/doc/api/rte__ethdev_8h.html#ac30d075b4b206c7122e200164ce69893 > second arg is number of rx queues > > Regards, > Vladimir > > 2015-04-28 13:02 GMT+03:00 Pavel Odintsov <pavel.odintsov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: >> >> Hello, Network Performance Gurus! >> >> I have Debian Jessie with 3.16 kernel, DPDK 2.0.0 with ixgbe NIC. And >> I wrote following code: >> https://gist.github.com/pavel-odintsov/e1f64de4d56c0ab1b37c >> >> I try to allocate 2 queues for TX and only 1 queue for RX and I can't >> do it with error (detailed error message >> https://gist.github.com/pavel-odintsov/507cf7a082793f547120): >> PMD: ixgbe_dev_rx_queue_setup(): sw_ring=0x7f9e9dcdbc80 >> hw_ring=0x7f9e9dd41500 dma_addr=0x36b41500 >> PMD: ixgbe_dev_tx_queue_setup(): sw_ring=0x7f9e9dcd9b40 >> hw_ring=0x7f9e9dd51580 dma_addr=0x36b51580 >> PMD: ixgbe_set_tx_function(): Using simple tx code path >> PMD: ixgbe_set_tx_function(): Vector tx enabled. >> EAL: Error - exiting with code: 1 >> Cause: Can't configure TX queue 1 for port 0 >> >> I could fix this issue with allocation 2 queues for TX and 2 queues >> for RX. But it's useless for my aplication because I need multiple TX >> queue but could use only one RX and I want ability to specify >> different number of queues for NIC. >> >> Thank you so much! >> >> -- >> Sincerely yours, Pavel Odintsov > > -- Sincerely yours, Pavel Odintsov ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-28 11:03 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-04-28 10:02 Can't allocate different number of TX and RX queues for single port of ixgbe NIC Pavel Odintsov [not found] ` <CALgsdbe9YTYxBCTo7Sp+No117dVqmJoKpwLo1NCiSnbK-G=zFQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2015-04-28 10:57 ` Vladimir Medvedkin [not found] ` <CANDrEHkPQJrCNz=a8hTQi=de0SF=JX_if7bU30qMU9Wqq4sjGQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2015-04-28 11:03 ` Pavel Odintsov
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).