Return-Path: Received: from mail-wm0-f66.google.com ([74.125.82.66]:36229 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750985AbeBTHo0 (ORCPT ); Tue, 20 Feb 2018 02:44:26 -0500 Received: by mail-wm0-f66.google.com with SMTP id f3so19295859wmc.1 for ; Mon, 19 Feb 2018 23:44:26 -0800 (PST) From: Jiri Pirko To: netdev@vger.kernel.org Cc: davem@davemloft.net, idosch@mellanox.com, arkadis@mellanox.com, mlxsw@mellanox.com Subject: [patch net-next v2 0/5] mlxsw: Expose KVD linear parts as resources Date: Tue, 20 Feb 2018 08:44:19 +0100 Message-Id: <20180220074424.4211-1-jiri@resnulli.us> Sender: netdev-owner@vger.kernel.org List-ID: From: Jiri Pirko Arkadi says: Expose the KVD linear partitions via the devlink resource interface. This will give the user the ability to control the linear memory division. --- v1->v2: - patch1: - fixed u64 division error reported by kbuildbot Arkadi Sharshevsky (5): devlink: Move size validation to core devlink: Perform cleanup of resource_set cb mlxsw: spectrum_kvdl: Add support for linear division resources mlxsw: spectrum_kvdl: Add support for dynamic partition set mlxsw: spectrum_kvdl: Add support for per part occupancy drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 87 +--------- drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 7 + .../net/ethernet/mellanox/mlxsw/spectrum_kvdl.c | 187 ++++++++++++++++++++- include/net/devlink.h | 4 - net/core/devlink.c | 32 +++- 5 files changed, 220 insertions(+), 97 deletions(-) -- 2.14.3