DCB-MAXRATE(8)
๐ dcb-maxrate ๐
okay so dcb-maxrate(8) is the manual page for the DCB maxrate settings, the part of the DCB (Data Center Bridging) subsystem that handles port maxrate. bestie, it's giving "limit how fast each traffic class is allowed to leave the port" ๐ฆ
โจ SYNOPSIS โจ
dcb [ OPTIONS ] maxrate { COMMAND | help }
dcb maxrate show dev DEV [ tc-maxrate ]
dcb maxrate set dev DEV [ tc-maxrate RATE-MAP ]
RATE-MAP := [ RATE-MAP ] RATE-MAPPING
RATE-MAPPING := { TC | all }:RATE
TC := { 0 .. 7 }
RATE := { INTEGER[bit] | INTEGERKbit | INTEGERMib | ... }
๐ธ DESCRIPTION ๐ธ
dcb maxrate is how you configure and inspect the maximum rate at which traffic is allowed to egress from a given traffic class. main character energy, literally ๐
๐ PARAMETERS ๐
ngl this part is kinda important, so pay attention ๐ The notes below only cover the write direction, aka the set command. For show, you just use the parameter name as a simple keyword with no extra arguments, and the tool shows you the value for that parameter. If you don't give any parameters at all, it shows the complete maxrate configuration ๐
tc-maxrate RATE-MAP
RATE-MAP uses the array parameter syntax, so check out dcb(8) for the deets. The keys are TC indices and the values are traffic rates in bits per second. You can use the notation documented in section PARAMETERS at tc(8) for the rates.
โ ๏ธ careful here: under that notation,bitmeans bits per second, butbmeans bytes per second. not the same thing, bestie ๐
When you're showing things, the -i option flips between decadic and ISO/IEC prefixes ๐ง
๐ EXAMPLE & USAGE ๐
set the rates of all traffic classes to 25Gbps, except TC 6, which gets 100Gbps ๐
# dcb maxrate set dev eth0 tc-maxrate all:25Gbit 6:100Gbit
then check what you set:
# dcb maxrate show dev eth0
tc-maxrate 0:25Gbit 1:25Gbit 2:25Gbit 3:25Gbit 4:25Gbit 5:25Gbit
6:100Gbit 7:25Gbit
๐ฆ EXIT STATUS ๐ฆ
the exit status is 0 if the command worked, or a positive integer if it failed. simple, iconic ๐
๐ซถ SEE ALSO ๐ซถ
๐ REPORTING BUGS ๐
if you find a bug, report it to the Network Developers mailing list <netdev@vger.kernel.org>. that's where the development and maintenance mostly happens. you do not have to be subscribed to the list to send a message there โจ
๐ฉโ๐ป AUTHOR ๐ฉโ๐ป
Petr Machata <me@pmachata.org> ๐ฅ
ok that's the whole tea, bestie ๐ซถ this page came from iproute2, last updated 22 November 2020, and it's the DCB-MAXRATE(8) page ๐๐ธ
๐ฆ where this page comes from
- alpine 3.22: iproute2-doc 6.15.0-r0 ยท GPL-2.0-or-later
- alpine 3.23: iproute2-doc 6.17.0-r0 ยท GPL-2.0-or-later
- alpine 3.24: iproute2-doc 7.0.0-r0 ยท GPL-2.0-or-later
- arch rolling: iproute2 7.2.0-1
- arch rolling: iproute2 7.3.0-1 ยท GPL-2.0-or-later
- centos-stream 10: iproute 7.0.0-2.el10 ยท GPL-2.0-or-later AND NIST-PD
- centos-stream 9: iproute 6.17.0-3.el9 ยท GPL-2.0-or-later AND NIST-PD
- debian bookworm: iproute2 6.1.0-3 ยท GPL-2.0-only
- debian trixie: iproute2 6.15.0-1 ยท GPL-2.0-only
- fedora 43: iproute 6.14.0-2.fc43 ยท GPL-2.0-or-later AND NIST-PD
- fedora 44: iproute 6.17.0-2.fc44 ยท GPL-2.0-or-later AND NIST-PD
- nixos 26.05: iproute2 7.0.0
- nixpkgs unstable: iproute2 7.2.0
- opensuse-leap 16.0: iproute2 6.12-160000.4.1 ยท GPL-2.0-only
- opensuse-leap 16.0: iproute2 6.12-160000.4.1 ยท GPL-2.0-only
- opensuse-leap 16.0: iproute2 6.12-160000.4.1 ยท GPL-2.0-only
- opensuse-leap 16.0: iproute2 6.12-160000.4.1 ยท GPL-2.0-only
- ubuntu jammy: iproute2 5.15.0-1ubuntu2 ยท GPL-2.0-only
- ubuntu jammy: iproute2 5.15.0-1ubuntu2.2 ยท GPL-2.0-only
- ubuntu noble: iproute2 6.1.0-1ubuntu6 ยท GPL-2.0-only
- ubuntu noble: iproute2 6.1.0-1ubuntu6.4 ยท GPL-2.0-only
- ubuntu questing: iproute2 6.16.0-1ubuntu2
- ubuntu questing: iproute2 6.16.0-1ubuntu2.1 ยท GPL-2.0-only
- ubuntu questing: iproute2 6.16.0-1ubuntu2.2
- ubuntu resolute: iproute2 6.19.0-1ubuntu1 ยท GPL-2.0-only
- ubuntu resolute: iproute2 6.19.0-1ubuntu1.1 ยท GPL-2.0-only
- ubuntu stonking: iproute2 7.2.0-1ubuntu1 ยท GPL-2.0-only
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms