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, bit means bits per second, but b means 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