net/mlx4: Add a check if there are too many reserved QPs
authorDotan Barak <dotanb@dev.mellanox.co.il>
Thu, 11 Dec 2014 08:57:55 +0000 (10:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Dec 2014 19:47:35 +0000 (14:47 -0500)
commitab256e5ad02b36951f01bf6b5cfda25f14820847
treee2c913bca56b7f514ad9f37a49c69a838290a491
parentddae0349fdb78bcc5e7219061847012aa1a29069
net/mlx4: Add a check if there are too many reserved QPs

The number of reserved QPs is affected both from the firmware and
from the driver's requirements. This patch adds a check that
validates that this number is indeed feasable.

Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/qp.c