]> git.ipfire.org Git - thirdparty/iproute2.git/commit
devlink: Introduce new attribute 'tx_weight' to devlink-rate
authorMichal Wilczynski <michal.wilczynski@intel.com>
Thu, 1 Dec 2022 10:26:25 +0000 (11:26 +0100)
committerDavid Ahern <dsahern@kernel.org>
Sat, 3 Dec 2022 17:47:06 +0000 (10:47 -0700)
commit0f71480932f1b860fce3b9689633640fb9b6837c
tree5db6d06d1849b637ef77f668cc52062c6b02705f
parenta6b9cd50e69a1cbb70ecb83a58c74b5e2b68f311
devlink: Introduce new attribute 'tx_weight' to devlink-rate

To fully utilize hierarchical QoS algorithm new attribute 'tx_weight'
needs to be introduced. Weight attribute allows for usage of Weighted
Fair Queuing arbitration scheme among siblings. This arbitration
scheme can be used simultaneously with the strict priority.

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

Example commands:
$ devlink port function rate add pci/0000:4b:00.0/node_custom \
  tx_weight 50 parent node_0

$ devlink port function rate set pci/0000:4b:00.0/2 tx_weight 20

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