[dpdk-dev] [PATCH] mlx4: use dummy rxqs when a non-pow2 number is requested

2016-04-15 Thread Olivier Matz
Hi, On 03/22/2016 03:27 PM, Wiles, Keith wrote: > Hi Olivier, > >> Hi Keith, >> >> On 03/21/2016 06:38 PM, Wiles, Keith wrote: On Mar 21, 2016, at 11:10 AM, Olivier Matz wrote: When using RSS, the number of rxqs has to be a power of two. This is a problem because there

[dpdk-dev] [PATCH] mlx4: use dummy rxqs when a non-pow2 number is requested

2016-03-24 Thread Olivier Matz
Hi Bruce, On 03/24/2016 01:20 PM, Bruce Richardson wrote: >> @@ -734,12 +734,12 @@ dev_configure(struct rte_eth_dev *dev) >> } >> if (rxqs_n == priv->rxqs_n) >> return 0; >> -if ((rxqs_n & (rxqs_n - 1)) != 0) { >> -ERROR("%p: invalid number of RX queues

[dpdk-dev] [PATCH] mlx4: use dummy rxqs when a non-pow2 number is requested

2016-03-24 Thread Bruce Richardson
On Mon, Mar 21, 2016 at 05:08:04PM +0100, Olivier Matz wrote: > When using RSS, the number of rxqs has to be a power of two. > This is a problem because there is no API is dpdk that makes > the application aware of that. > > A good compromise is to allow the application to request a > number of

[dpdk-dev] [PATCH] mlx4: use dummy rxqs when a non-pow2 number is requested

2016-03-22 Thread Wiles, Keith
Hi Olivier, >Hi Keith, > >On 03/21/2016 06:38 PM, Wiles, Keith wrote: >>> On Mar 21, 2016, at 11:10 AM, Olivier Matz >>> wrote: >>> >>> When using RSS, the number of rxqs has to be a power of two. >>> This is a problem because there is no API is dpdk that makes >>> the application aware of

[dpdk-dev] [PATCH] mlx4: use dummy rxqs when a non-pow2 number is requested

2016-03-22 Thread Olivier Matz
Hi Keith, On 03/21/2016 06:38 PM, Wiles, Keith wrote: >> On Mar 21, 2016, at 11:10 AM, Olivier Matz wrote: >> >> When using RSS, the number of rxqs has to be a power of two. >> This is a problem because there is no API is dpdk that makes >> the application aware of that. >> >> A good compromise

[dpdk-dev] [PATCH] mlx4: use dummy rxqs when a non-pow2 number is requested

2016-03-21 Thread Adrien Mazarguil
On Mon, Mar 21, 2016 at 05:08:04PM +0100, Olivier Matz wrote: > When using RSS, the number of rxqs has to be a power of two. > This is a problem because there is no API is dpdk that makes > the application aware of that. > > A good compromise is to allow the application to request a > number of

[dpdk-dev] [PATCH] mlx4: use dummy rxqs when a non-pow2 number is requested

2016-03-21 Thread Wiles, Keith
Sent from my iPhone > On Mar 21, 2016, at 11:10 AM, Olivier Matz wrote: > > When using RSS, the number of rxqs has to be a power of two. > This is a problem because there is no API is dpdk that makes > the application aware of that. > > A good compromise is to allow the application to

[dpdk-dev] [PATCH] mlx4: use dummy rxqs when a non-pow2 number is requested

2016-03-21 Thread Olivier Matz
When using RSS, the number of rxqs has to be a power of two. This is a problem because there is no API is dpdk that makes the application aware of that. A good compromise is to allow the application to request a number of rxqs that is not a power of 2, but having inactive queues that will never