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

Jiri Pirko jiri at resnulli.us
Tue May 1 00:08:05 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.
---
v1->v2:
-patch 2:
 - fixed lag_id bitcount
-patch 3:
 - make ops args const

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(-)

-- 
2.14.3



More information about the Linux-mlxsw mailing list