]> git.ipfire.org Git - thirdparty/iproute2.git/commit
devlink: Introduce new attribute 'tx_priority' to devlink-rate
authorMichal Wilczynski <michal.wilczynski@intel.com>
Thu, 1 Dec 2022 10:26:24 +0000 (11:26 +0100)
committerDavid Ahern <dsahern@kernel.org>
Sat, 3 Dec 2022 17:43:38 +0000 (10:43 -0700)
commita6b9cd50e69a1cbb70ecb83a58c74b5e2b68f311
tree7f1c997d100145423aab27b9830849fe6e40377e
parent8a1cc48311595e1b8e252774c7fd3b4dc8e61dfd
devlink: Introduce new attribute 'tx_priority' to devlink-rate

To fully utilize hierarchical QoS algorithm new attribute 'tx_priority'
needs to be introduced. Priority attribute allows for usage of strict
priority arbiter among siblings. This arbitration scheme attempts to
schedule nodes based on their priority as long as the nodes remain within
their bandwidth limit.

Introduce ability to configure tx_priority from devlink userspace
utility. Make the new attribute optional.

Example commands:
$ devlink port function rate add pci/0000:4b:00.0/node_custom \
  tx_priority 5 parent node_0
$ devlink port function rate set pci/0000:4b:00.0/2 tx_priority 5

Signed-off-by: Michal Wilczynski <michal.wilczynski@intel.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
devlink/devlink.c