Jiri says: Current SwitchX2 and Spectrum FWs support CQEv0 and that is what we implement in mlxsw. Spectrum FW also supports CQE v1 and v2. However, Spectrum-2 won't support CQEv0. Prepare for it and setup the CQE versions to use according to what is queried from FW.
Jiri Pirko (4): mlxsw: resources: Add CQE versions resources mlxsw: pci: Introduce helpers to work with multiple CQE versions mlxsw: pci: Allow to use CQEs of version 1 and version 2 mlxsw: pci: Check number of CQEs for CQE version 2 drivers/net/ethernet/mellanox/mlxsw/cmd.h | 31 ++++- drivers/net/ethernet/mellanox/mlxsw/pci.c | 148 ++++++++++++++++++------ drivers/net/ethernet/mellanox/mlxsw/pci_hw.h | 74 ++++++++++-- drivers/net/ethernet/mellanox/mlxsw/resources.h | 6 + 4 files changed, 208 insertions(+), 51 deletions(-) -- 2.14.3