mlxsw: pci: Use MLXSW_PCI_CQS_MAX instead of MLXSW_PCI_CQS_COUNT
authorJiri Pirko <jiri@mellanox.com>
Thu, 15 Oct 2015 15:43:17 +0000 (17:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Oct 2015 06:27:47 +0000 (23:27 -0700)
commite4c870b1b496c90dc4fa9cf24937c7a45e84187f
tree6855413dd37b674ec941634310cc95fa4921a76d
parentffe053285b77e9cd87c3b8e37f35bdb8de8172d1
mlxsw: pci: Use MLXSW_PCI_CQS_MAX instead of MLXSW_PCI_CQS_COUNT

The count of CQs can be different for various ASICs, so just define
maximal value and check for that.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/pci.c
drivers/net/ethernet/mellanox/mlxsw/pci.h