forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
12 changed files
with
1,213 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
What: /kvd/ | ||
Date: 08-Jan-2018 | ||
KernelVersion: v4.16 | ||
Contact: [email protected] | ||
Description: The main database in the Spectrum device is a centralized | ||
KVD database used for many of the tables used to configure | ||
the chip including L2 FDB, L3 LPM, ECMP and more. The KVD | ||
is divided into two sections, the first is hash-based table | ||
and the second is a linear access table. The division | ||
between the linear and hash-based sections is static and | ||
require reload before the changes take effect. | ||
|
||
What: /kvd/linear | ||
Date: 08-Jan-2018 | ||
KernelVersion: v4.16 | ||
Contact: [email protected] | ||
Description: The linear section of the KVD is managed by software as a | ||
flat memory accessed using an index. | ||
|
||
What: /kvd/hash_single | ||
Date: 08-Jan-2018 | ||
KernelVersion: v4.16 | ||
Contact: [email protected] | ||
Description: The hash based section of the KVD is managed by the switch | ||
device. Used in case the key size is smaller or equal to | ||
64bit. | ||
|
||
What: /kvd/hash_double | ||
Date: 08-Jan-2018 | ||
KernelVersion: v4.16 | ||
Contact: [email protected] | ||
Description: The hash based section of the KVD is managed by the switch | ||
device. Used in case the key is larger than 64 bit. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.