]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'devlink-resource'
authorDavid S. Miller <davem@davemloft.net>
Tue, 16 Jan 2018 19:15:36 +0000 (14:15 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jan 2018 19:15:36 +0000 (14:15 -0500)
commit19eaf7aa2bc2ee86ea95bc7c594cff18d399c98e
treeb1961af26dd36e7675639accebb89fc48dca4965
parent3b695c32137cbf2c2761a25586863eb4fcf3aed0
parentcd8ad0f4870a28aed5fa3c83f07e8e6bf5db3f96
Merge branch 'devlink-resource'

Jiri Pirko says:

====================
devlink: Add support for resource abstraction

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 such cases performing driver reload is
needed for the changes to take place, thus this patchset also adds support
for hot reload.

Such an abstraction can be coupled with devlink's dpipe interface, which
models the ASIC's pipeline as a 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.

---
v2->v3
- Mix/Max/Gran attributes.
- Add resource consumption per table.
- Change basic resource unit to 'entry'.
- ABI documentation.

v1->v2
- Add resource size attribute.
- Fix split bug.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>