From: Michal Wilczynski Date: Thu, 1 Dec 2022 10:26:26 +0000 (+0100) Subject: devlink: Add documentation for tx_prority and tx_weight X-Git-Tag: v6.2.0~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e2b53467172ec77f2709ba482e635f79e89ab1d;p=thirdparty%2Fiproute2.git devlink: Add documentation for tx_prority and tx_weight New netlink attributes tx_priority and tx_weight were added. Update the man page for devlink-rate to account for new attributes. Signed-off-by: Michal Wilczynski Reviewed-by: Wojciech Drewek Signed-off-by: David Ahern --- diff --git a/man/man8/devlink-rate.8 b/man/man8/devlink-rate.8 index cc2f50c38..bcec3c316 100644 --- a/man/man8/devlink-rate.8 +++ b/man/man8/devlink-rate.8 @@ -26,12 +26,16 @@ devlink-rate \- devlink rate management .RI "{ " DEV/PORT_INDEX " | " DEV/NODE_NAME " } " .RB [ " tx_share \fIVALUE " ] .RB [ " tx_max \fIVALUE " ] +.RB [ " tx_priority \fIN " ] +.RB [ " tx_weight \fIN " ] .RB "[ {" " parent \fINODE_NAME " | " noparent " "} ]" .ti -8 .BI "devlink port function rate add " DEV/NODE_NAME .RB [ " tx_share \fIVALUE " ] .RB [ " tx_max \fIVALUE " ] +.RB [ " tx_priority \fIN " ] +.RB [ " tx_weight \fIN " ] .RB "[ {" " parent \fINODE_NAME " | " noparent " "} ]" .ti -8 @@ -83,6 +87,20 @@ rate group. .PP .BI tx_max " VALUE" - specifies maximum tx rate value. +.PP +.BI tx_priority " N" +- 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. The higher the priority the higher the +probability that the node will get selected for scheduling. +.PP +.BI tx_weight " N" +- allows for usage of Weighted Fair Queuing arbitration scheme among siblings. +This arbitration scheme can be used simultaneously with the strict priority. +As a node is configured with a higher rate it gets more BW relative to it's +siblings. Values are relative like a percentage points, they basically tell +how much BW should node take relative to it's siblings. +.PP .TP 8 .I VALUE These parameter accept a floating point number, possibly followed by either a @@ -123,6 +141,10 @@ To specify in IEC units, replace the SI prefix (k-, m-, g-, t-) with IEC prefix (ki-, mi-, gi- and ti-) respectively. Input is case-insensitive. .RE .PP +.TP 8 +.I N +These parameter accept integer meaning weight or priority of a node. +.PP .BI parent " NODE_NAME \fR| " noparent - set rate object parent to existing node with name \fINODE_NAME\fR or unset parent. Rate limits of the parent node applied to all it's children. Actual