From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [patch net-next RFC v2 00/11] Add support for resource abstraction Date: Sat, 18 Nov 2017 12:56:17 -0700 Message-ID: <64ee5d72-cf0e-f807-a8b0-e62333ee9d52@cumulusnetworks.com> References: <20171114161852.6633-1-jiri@resnulli.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: davem@davemloft.net, mlxsw@mellanox.com, andrew@lunn.ch, vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, michael.chan@broadcom.com, ganeshgr@chelsio.com, saeedm@mellanox.com, matanb@mellanox.com, leonro@mellanox.com, idosch@mellanox.com, jakub.kicinski@netronome.com, ast@kernel.org, daniel@iogearbox.net, simon.horman@netronome.com, pieter.jansenvanvuuren@netronome.com, john.hurley@netronome.com, alexander.h.duyck@intel.com, linville@tuxdriver.com, gospo@broadcom.com, steven.lin1@broadcom.com, yuvalm@mellanox.com, ogerlitz@mellanox.com, roopa@cumulusnetworks.com To: Jiri Pirko , netdev@vger.kernel.org Return-path: Received: from mail-pf0-f196.google.com ([209.85.192.196]:39454 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763062AbdKRT4V (ORCPT ); Sat, 18 Nov 2017 14:56:21 -0500 Received: by mail-pf0-f196.google.com with SMTP id l24so4370185pfj.6 for ; Sat, 18 Nov 2017 11:56:21 -0800 (PST) In-Reply-To: <20171114161852.6633-1-jiri@resnulli.us> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 11/14/17 9:18 AM, Jiri Pirko wrote: > From: Jiri Pirko > > Arkadi says: > > Many of the ASIC's internal resources are limited and are shared between > several hardware procedures. For example, unified hash-based memory can > be used for many lookup purposes, like FDB and LPM. In many cases the user > can provide a partitioning scheme for such a resource in order to perform > fine tuning for his application. In many cases after setting the > partitioning of the resource driver reload is needed. This patchset add > support for hot reset of the driver. > > Such an abstraction can be coupled with devlink's dpipe interface, which > models the ASIC's pipeline as an graph of match/action tables. By modeling > the hardware resource object, and by coupling it to several dpipe tables, > further visibility can be achieved in order to debug ASIC-wide issues. > > The proposed interface will provide the user the ability to understand the > limitations of the hardware, and receive notification regarding its occupancy. > Furthermore, monitoring the resource occupancy can be done in real-time and > can be useful in many cases. > > Userspace part prototype can be found at https://github.com/arkadis/iproute2/ > at resource_dev branch. > Please add the example user commands from the above to this cover-letter. Makes easier to understand the intentions of this patch set from a user perspective.