net/mlx4: check RSS queues number limitation
authorMoti Haimovsky <motih@mellanox.com>
Wed, 25 Jul 2018 14:47:39 +0000 (17:47 +0300)
committerShahaf Shuler <shahafs@mellanox.com>
Thu, 2 Aug 2018 10:34:16 +0000 (12:34 +0200)
commit2b4e423fd4c9ed5b0a4d1a0962f4af653b7324c5
tree3e4195c190ff47f62191953b0ff6b96156a82841
parente94be227b7ea025d8fd0ee5d79052a8c31d432c6
net/mlx4: check RSS queues number limitation

This patch verifies that the number of Rx queues configured for RSS
is supported by the device hardware.
RSS support in mlx4 requires contiguous chunk of QPs to be reserved,
there is a hardware limitation on the amount of contiguous QPs which
is reported by the hardware. Ignoring this value will cause Rx queues
creation to fail.

Cc: stable@dpdk.org
Signed-off-by: Moti Haimovsky <motih@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx4/mlx4.c
drivers/net/mlx4/mlx4.h
drivers/net/mlx4/mlx4_rxq.c