From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ido Schimmel Subject: [PATCH net-next 0/4] mlxsw: Introduce support for CQEv1/2 Date: Thu, 3 May 2018 14:59:38 +0300 Message-ID: <20180503115942.8279-1-idosch@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain Cc: davem@davemloft.net, jiri@mellanox.com, mlxsw@mellanox.com, Ido Schimmel To: netdev@vger.kernel.org Return-path: Received: from mail-ve1eur01on0071.outbound.protection.outlook.com ([104.47.1.71]:63904 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751075AbeECMAe (ORCPT ); Thu, 3 May 2018 08:00:34 -0400 Sender: netdev-owner@vger.kernel.org List-ID: 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