]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitceb5c24f381ddb7320eefb3b37ae035afd2bd032
tree85b0266da5d74de4334ddcaac1647082f4c09ef9
parentcedc717553fa729c07f0da9b00d161389423989c
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