diff options
| author | Dmytro Linkin <[email protected]> | 2021-06-02 15:17:19 +0300 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-06-02 14:08:36 -0700 |
| commit | 4677efc486e1872f62d4632c50f7183f82296fa6 (patch) | |
| tree | 05dc0ace4ac1ee7ff0374180114bc461a05b13d8 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 160dc373eead2143ea51b7f8e2a6bf1e383f24f8 (diff) | |
devlink: Introduce rate object
Allow registering rate object for devlink ports with dedicated
devlink_rate_leaf_{create|destroy}() API. Implement new netlink
DEVLINK_CMD_RATE_GET command that is used to retrieve rate object info.
Add new DEVLINK_CMD_RATE_{NEW|DEL} commands that are used for
notifications when creating/deleting leaf rate object.
Rate API is intended to be used for rate limiting of individual
devlink ports (leafs) and their aggregates (nodes).
Example:
$ devlink port show
pci/0000:03:00.0/0
pci/0000:03:00.0/1
$ devlink port function rate show
pci/0000:03:00.0/0: type leaf
pci/0000:03:00.0/1: type leaf
Co-developed-by: Vlad Buslov <[email protected]>
Signed-off-by: Vlad Buslov <[email protected]>
Signed-off-by: Dmytro Linkin <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions