mlx4: ensure number of Rx queues is a power of 2
authorRobin Jarry <robin.jarry@6wind.com>
Thu, 3 Mar 2016 14:27:40 +0000 (15:27 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 17:52:17 +0000 (18:52 +0100)
commitbda501616c2f2f16c9d26bec472bf82d0f9ce6b7
treee567c9e1dfd850acd5a434ac18424f80ff05ee35
parent3b32a6b417f3ac8d7723412577859d34b0d885b9
mlx4: ensure number of Rx queues is a power of 2

In the documentation it is specified that the hardware only supports a
number of RX queues if it is a power of 2.

Since ibv_exp_create_qp may not return an error when the number of
queues is unsupported by hardware, sanitize the value in dev_configure.

Signed-off-by: Robin Jarry <robin.jarry@6wind.com>
drivers/net/mlx4/mlx4.c