mlxsw: pci: Allow to use CQEs of version 1 and version 2
authorJiri Pirko <jiri@mellanox.com>
Thu, 3 May 2018 11:59:41 +0000 (14:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 May 2018 17:44:43 +0000 (13:44 -0400)
commit8404f6f2e8ed2bd667c0c95ee40561b63e0800f9
tree85b0266da5d74de4334ddcaac1647082f4c09ef9
parentb76550bbed9f9aa10b01b89698f6a5c55509b070
mlxsw: pci: Allow to use CQEs of version 1 and version 2

Use previously added resources to query FW support for multiple versions
of CQEs. Use the biggest version supported. For SDQs, it has no sense to
use version 2 as it does not introduce any new features, but it is
twice the size of CQE version 1.

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