[patch net-next mlxsw 0/4] mlxsw: Introduce support for CQEv1/2

Jiri Pirko jiri at resnulli.us
Thu Apr 26 18:28:14 AEST 2018

From: Jiri Pirko <jiri at mellanox.com>

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       | 144 ++++++++++++++++++------
 drivers/net/ethernet/mellanox/mlxsw/pci_hw.h    |  74 ++++++++++--
 drivers/net/ethernet/mellanox/mlxsw/resources.h |   6 +
 4 files changed, 206 insertions(+), 49 deletions(-)


More information about the Linux-mlxsw mailing list