[dpdk-dev] how to use multiple RX queues on the same port

2015-10-27 Thread Montorsi, Francesco
Hi Pablo,

> -Original Message-
> From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch at 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





[dpdk-dev] how to use multiple RX queues on the same port

2015-10-26 Thread De Lara Guarch, Pablo
Hi Francesco,

> -Original Message-
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Montorsi,
> Francesco
> Sent: Monday, October 26, 2015 5:23 PM
> To: dev at 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



[dpdk-dev] how to use multiple RX queues on the same port

2015-10-26 Thread Montorsi, Francesco
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