DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] how to use multiple RX queues on the same port
@ 2015-10-26 17:22 Montorsi, Francesco
  2015-10-26 19:36 ` De Lara Guarch, Pablo
  0 siblings, 1 reply; 3+ messages in thread
From: Montorsi, Francesco @ 2015-10-26 17:22 UTC (permalink / raw)
  To: dev

Hi all,
To avoid rx_nombuf packet drops, I'm trying to configure a DPDK port to use more than 1 RX queue... so I'm trying (on a 10Gbps card) to use 4 RX queues.
The call to rte_eth_dev_configure() and the 4 calls to rte_eth_rx_queue_setup() succeed but then via the rte_eth_rx_queue_count() API I see that only the first RX queue is used. The remaining 3 seems unused... am I missing something?


Thanks!

Francesco Montorsi

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

* Re: [dpdk-dev] how to use multiple RX queues on the same port
  2015-10-26 17:22 [dpdk-dev] how to use multiple RX queues on the same port Montorsi, Francesco
@ 2015-10-26 19:36 ` De Lara Guarch, Pablo
  2015-10-27 10:12   ` Montorsi, Francesco
  0 siblings, 1 reply; 3+ messages in thread
From: De Lara Guarch, Pablo @ 2015-10-26 19:36 UTC (permalink / raw)
  To: Montorsi, Francesco, dev

Hi Francesco,

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Montorsi,
> Francesco
> Sent: Monday, October 26, 2015 5:23 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] how to use multiple RX queues on the same port
> 
> Hi all,
> To avoid rx_nombuf packet drops, I'm trying to configure a DPDK port to use
> more than 1 RX queue... so I'm trying (on a 10Gbps card) to use 4 RX queues.
> The call to rte_eth_dev_configure() and the 4 calls to
> rte_eth_rx_queue_setup() succeed but then via the
> rte_eth_rx_queue_count() API I see that only the first RX queue is used. The
> remaining 3 seems unused... am I missing something?

How are you configuring the port? Are you using RSS? I guess that's what you are looking for,
so make sure that you are using the right mq_mode(ETH_MQ_RX_RSS).
Which NIC are you using and which traffic type? Because if you don't vary the traffic, you won't see any traffic in all queues.

Pablo

> 
> 
> Thanks!
> 
> Francesco Montorsi

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

* Re: [dpdk-dev] how to use multiple RX queues on the same port
  2015-10-26 19:36 ` De Lara Guarch, Pablo
@ 2015-10-27 10:12   ` Montorsi, Francesco
  0 siblings, 0 replies; 3+ messages in thread
From: Montorsi, Francesco @ 2015-10-27 10:12 UTC (permalink / raw)
  To: De Lara Guarch, Pablo, dev

Hi Pablo,

> -----Original Message-----
> From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch@intel.com]
> > Hi all,
> > To avoid rx_nombuf packet drops, I'm trying to configure a DPDK port
> > to use more than 1 RX queue... so I'm trying (on a 10Gbps card) to use 4 RX
> queues.
> > The call to rte_eth_dev_configure() and the 4 calls to
> > rte_eth_rx_queue_setup() succeed but then via the
> > rte_eth_rx_queue_count() API I see that only the first RX queue is
> > used. The remaining 3 seems unused... am I missing something?
> 
> How are you configuring the port? Are you using RSS? I guess that's what you
> are looking for, so make sure that you are using the right
> mq_mode(ETH_MQ_RX_RSS).

No, I was not using RSS and this was indeed the problem. I enabled it as is done in e.g., l3fwd example, i.e., using the ETH_RSS_IP for the hash functions to apply. I now see that all 4 RX queues are correctly used. 

Thanks!!
Francesco

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

end of thread, other threads:[~2015-10-27 10:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-26 17:22 [dpdk-dev] how to use multiple RX queues on the same port Montorsi, Francesco
2015-10-26 19:36 ` De Lara Guarch, Pablo
2015-10-27 10:12   ` Montorsi, Francesco

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