DCB-PFC(8)

okay bestie, this is the dcb-pfc man page (section 8) ๐ŸŽ€

๐Ÿ’– NAME ๐Ÿ’–

dcb-pfc โ€” show / manipulate PFC (Priority-based Flow Control) settings of the DCB (Data Center Bridging) subsystem โœจ

๐Ÿงš SYNOPSIS ๐Ÿงš

dcb [ OPTIONS ] pfc { COMMAND | help }

dcb pfc show dev DEV [ pfc-cap ] [ prio-pfc ] [ macsec-bypass ] [ delay
        ] [ requests ] [ indications ]

dcb pfc set dev DEV [ prio-pfc PFC-MAP ] [ macsec-bypass { on | off } ]
        [ delay INTEGER ]

PFC-MAP := [ PFC-MAP ] PFC-MAPPING

PFC-MAPPING := { PRIO | all }:{ on | off }

PRIO := { 0 .. 7 }

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

okay so dcb pfc is the tool you use to configure Priority-based Flow Control attributes through the Linux DCB (Data Center Bridging) interface ๐Ÿ’… PFC lets you mark flows with a certain priority as lossless, and it also holds the related configuration and the PFC counters. literally the whole vibe ๐ŸŒธ

๐ŸŒˆ PARAMETERS ๐ŸŒˆ

ngl this part is a little detailed, but it's important! For read-write parameters, we only describe the write direction, which means how it works with the set command. For the show command, you just use the parameter name as a simple keyword with no extra arguments. That tells the tool to show you the value of that parameter. If you don't give any parameters at all, the tool shows the complete PFC configuration ๐Ÿ‘‘

  • pfc-cap โ€” a read-only property that shows the number of traffic classes that may simultaneously support PFC ๐ŸŽ€
  • requests โ€” a read-only count of the sent PFC frames per traffic class. It only shows up when -s is given, or when you ask for it explicitly ๐Ÿ“ค
  • indications โ€” a read-only count of the received PFC frames per traffic class. Same deal: it only shows up when -s is given, or when you request it explicitly ๐Ÿ“ฅ
  • macsec-bypass { on | off } โ€” whether the sending station is capable of bypassing MACsec processing when MACsec is disabled ๐Ÿ”
  • prio-pfc PFC-MAP โ€” PFC-MAP uses the array parameter syntax, so check out dcb(8) for the full details ๐Ÿง The keys are priorities, and the values are on / off indicators of whether PFC is enabled for that priority ๐Ÿ’œ
  • delay INTEGER โ€” the allowance made for round-trip propagation delay of the link, measured in bits. The value shall be 0..65535 โฑ๏ธ

๐Ÿ’… EXAMPLE & USAGE ๐Ÿ’…

ok this is the fun part, let's see it in action โœจ

Enable PFC on priorities 6 and 7, leaving the rest intact:

# dcb pfc set dev eth0 prio-pfc 6:on 7:on

Disable PFC of all priorities except 6 and 7, and configure delay to 4096 bits:

# dcb pfc set dev eth0 prio-pfc all:off 6:on 7:on delay 0x1000

Show what was set:

# dcb pfc show dev eth0
pfc-cap 8 macsec-bypass off delay 4096
prio-pfc 0:off 1:off 2:off 3:off 4:off 5:off 6:on 7:on

๐Ÿ™ˆ EXIT STATUS ๐Ÿ™ˆ

Exit status is 0 if the command was successful, or a positive integer upon failure. so if you get anything other than 0, something didn't slay ๐Ÿ’€

๐Ÿ”— SEE ALSO ๐Ÿ”—

dcb(8) ๐Ÿซถ

๐Ÿ› REPORTING BUGS ๐Ÿ›

found a bug? bestie, report it! Send it to the Network Developers mailing list <netdev@vger.kernel.org>, which is where the development and maintenance is primarily done. You do not have to be subscribed to the list to send a message there ๐Ÿ“ฌ

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Petr Machata <me@pmachata.org> ๐Ÿ’–


that's the tea, bestie! โ˜• This page is from iproute2, last updated 31 October 2020, and it's all about DCB-PFC(8) ๐ŸŒˆ๐Ÿ’œ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from