mlx4: use dummy Rx queues when non-pow2 number requested
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 25 Mar 2016 10:24:41 +0000 (11:24 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 25 Mar 2016 18:03:48 +0000 (19:03 +0100)
commit2a345a891917829d5eef7dc5d830131f37ec6fba
tree99eec655298094e872a9e020b6b618a44eb7cd52
parent214b0619fc60b0625459b3c4a0328e9f90d4c20f
mlx4: use dummy Rx queues when non-pow2 number requested

When using RSS, the number of rxqs has to be a power of two.
This is a problem because there is no API in 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 receive packets. In this configuration,
a warning will be issued to users to let them know that
this is not an optimal configuration.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4.c