1DCB-MAXRATE(8) Linux DCB-MAXRATE(8)
2
3
4
6 dcb-maxrate - show / manipulate port maxrate settings of the DCB (Data
7 Center Bridging) subsystem
8
10 dcb [ OPTIONS ] maxrate { COMMAND | help }
11
12
13 dcb maxrate show dev DEV [ tc-maxrate ]
14
15 dcb maxrate set dev DEV [ tc-maxrate RATE-MAP ]
16
17 RATE-MAP := [ RATE-MAP ] RATE-MAPPING
18
19 RATE-MAPPING := { TC | all }:RATE
20
21 TC := { 0 .. 7 }
22
23 RATE := { INTEGER[bit] | INTEGERKbit | INTEGERMib | ... }
24
25
27 dcb maxrate is used to configure and inspect maximum rate at which
28 traffic is allowed to egress from a given traffic class.
29
30
32 The following describes only the write direction, i.e. as used with the
33 set command. For the show command, the parameter name is to be used as
34 a simple keyword without further arguments. This instructs the tool to
35 show the value of a given parameter. When no parameters are given, the
36 tool shows the complete maxrate configuration.
37
38
39 tc-maxrate RATE-MAP
40 RATE-MAP uses the array parameter syntax, see dcb(8) for de‐
41 tails. Keys are TC indices, values are traffic rates in bits per
42 second. The rates can use the notation documented in section
43 PARAMETERS at tc(8). Note that under that notation, "bit"
44 stands for bits per second whereas "b" stands for bytes per sec‐
45 ond. When showing, the command line option -i toggles between
46 using decadic and ISO/IEC prefixes.
47
48
50 Set rates of all traffic classes to 25Gbps, except for TC 6, which will
51 have the rate of 100Gbps:
52
53
54 # dcb maxrate set dev eth0 tc-maxrate all:25Gbit 6:100Gbit
55
56 Show what was set:
57
58
59 # dcb maxrate show dev eth0
60 tc-maxrate 0:25Gbit 1:25Gbit 2:25Gbit 3:25Gbit 4:25Gbit 5:25Gbit
61 6:100Gbit 7:25Gbit
62
63
65 Exit status is 0 if command was successful or a positive integer upon
66 failure.
67
68
70 dcb(8)
71
72
74 Report any bugs to the Network Developers mailing list <net‐
75 dev@vger.kernel.org> where the development and maintenance is primarily
76 done. You do not have to be subscribed to the list to send a message
77 there.
78
79
81 Petr Machata <me@pmachata.org>
82
83
84
85iproute2 22 November 2020 DCB-MAXRATE(8)