From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ido Schimmel Subject: [PATCH net-next 00/11] mlxsw: Various cleanups Date: Thu, 29 Mar 2018 23:33:23 +0300 Message-ID: <20180329203334.25575-1-idosch@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain Cc: davem@davemloft.net, jiri@mellanox.com, petrm@mellanox.com, mlxsw@mellanox.com, Ido Schimmel To: netdev@vger.kernel.org Return-path: Received: from mail-db5eur01on0052.outbound.protection.outlook.com ([104.47.2.52]:38938 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752478AbeC2UeB (ORCPT ); Thu, 29 Mar 2018 16:34:01 -0400 Sender: netdev-owner@vger.kernel.org List-ID: Hi, The first 10 patches from Jiri perform small and unrelated cleanups. The largest being the conversion of the KVD linear partitions from a list to an array, which simplifies the code. The last patch from Petr is a bug fix for a recent net-next commit that prevented the "kvd" resource from being marked as the parent of its various child resources (e.g., "/kvd/linear"). Jiri Pirko (10): mlxsw: spectrum_acl: Fix flex actions header ifndef define construct mlxsw: spectrum_kvdl: Fix handling of resource_size_param mlxsw: Constify devlink_resource_ops mlxsw: spectrum: Change KVD linear parts from list to array mlxsw: remove kvd_hash_granularity from config profile struct mlxsw: core: Fix arg name of MLXSW_CORE_RES_VALID and MLXSW_CORE_RES_GET mlxsw: Move "used_kvd_sizes" check to mlxsw_pci_config_profile mlxsw: Move "resources_query_enable" out of mlxsw_config_profile devlink: convert occ_get op to separate registration mlxsw: spectrum: Pass mlxsw_core as arg of mlxsw_sp_kvdl_resources_register() Petr Machata (1): mlxsw: spectrum: Don't use resource ID of 0 drivers/net/ethernet/mellanox/mlxsw/core.c | 5 +- drivers/net/ethernet/mellanox/mlxsw/core.h | 14 +- drivers/net/ethernet/mellanox/mlxsw/pci.c | 11 +- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 38 +-- drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 5 +- .../mellanox/mlxsw/spectrum_acl_flex_actions.h | 4 +- .../net/ethernet/mellanox/mlxsw/spectrum_kvdl.c | 339 +++++++++------------ drivers/net/ethernet/mellanox/mlxsw/switchib.c | 1 - drivers/net/ethernet/mellanox/mlxsw/switchx2.c | 1 - include/net/devlink.h | 40 ++- net/core/devlink.c | 74 ++++- 11 files changed, 258 insertions(+), 274 deletions(-) -- 2.14.3