Blame man/man8/dcb-pfc.8

Packit Bot 867fae
.TH DCB-PFC 8 "31 October 2020" "iproute2" "Linux"
Packit Bot 867fae
.SH NAME
Packit Bot 867fae
dcb-pfc \- show / manipulate PFC (Priority-based Flow Control) settings of
Packit Bot 867fae
the DCB (Data Center Bridging) subsystem
Packit Bot 867fae
.SH SYNOPSIS
Packit Bot 867fae
.sp
Packit Bot 867fae
.ad l
Packit Bot 867fae
.in +8
Packit Bot 867fae
Packit Bot 867fae
.ti -8
Packit Bot 867fae
.B dcb
Packit Bot 867fae
.RI "[ " OPTIONS " ] "
Packit Bot 867fae
.B pfc
Packit Bot 867fae
.RI "{ " COMMAND " | " help " }"
Packit Bot 867fae
.sp
Packit Bot 867fae
Packit Bot 867fae
.ti -8
Packit Bot 867fae
.B dcb pfc show dev
Packit Bot 867fae
.RI DEV
Packit Bot 867fae
.RB "[ " pfc-cap " ]"
Packit Bot 867fae
.RB "[ " prio-pfc " ]"
Packit Bot 867fae
.RB "[ " macsec-bypass " ]"
Packit Bot 867fae
.RB "[ " delay " ]"
Packit Bot 867fae
.RB "[ " requests " ]"
Packit Bot 867fae
.RB "[ " indications " ]"
Packit Bot 867fae
Packit Bot 867fae
.ti -8
Packit Bot 867fae
.B dcb pfc set dev
Packit Bot 867fae
.RI DEV
Packit Bot 867fae
.RB "[ " prio-pfc " " \fIPFC-MAP " ]"
Packit Bot 867fae
.RB "[ " macsec-bypass " { " on " | " off " } ]"
Packit Bot 867fae
.RB "[ " delay " " \fIINTEGER\fR " ]"
Packit Bot 867fae
Packit Bot 867fae
.ti -8
Packit Bot 867fae
.IR PFC-MAP " := [ " PFC-MAP " ] " PFC-MAPPING
Packit Bot 867fae
Packit Bot 867fae
.ti -8
Packit Bot 867fae
.IR PFC-MAPPING " := { " PRIO " | " \fBall " }" \fB:\fR "{ "
Packit Bot 867fae
.IR \fBon\fR " | " \fBoff\fR " }"
Packit Bot 867fae
Packit Bot 867fae
.ti -8
Packit Bot 867fae
.IR PRIO " := { " \fB0\fR " .. " \fB7\fR " }"
Packit Bot 867fae
Packit Bot 867fae
.SH DESCRIPTION
Packit Bot 867fae
Packit Bot 867fae
.B dcb pfc
Packit Bot 867fae
is used to configure Priority-based Flow Control attributes through Linux
Packit Bot 867fae
DCB (Data Center Bridging) interface. PFC permits marking flows with a
Packit Bot 867fae
certain priority as lossless, and holds related configuration, as well as
Packit Bot 867fae
PFC counters.
Packit Bot 867fae
Packit Bot 867fae
.SH PARAMETERS
Packit Bot 867fae
Packit Bot 867fae
For read-write parameters, the following describes only the write direction,
Packit Bot 867fae
i.e. as used with the \fBset\fR command. For the \fBshow\fR command, the
Packit Bot 867fae
parameter name is to be used as a simple keyword without further arguments. This
Packit Bot 867fae
instructs the tool to show the value of a given parameter. When no parameters
Packit Bot 867fae
are given, the tool shows the complete PFC configuration.
Packit Bot 867fae
Packit Bot 867fae
.TP
Packit Bot 867fae
.B pfc-cap
Packit Bot 867fae
A read-only property that shows the number of traffic classes that may
Packit Bot 867fae
simultaneously support PFC.
Packit Bot 867fae
Packit Bot 867fae
.TP
Packit Bot 867fae
.B requests
Packit Bot 867fae
A read-only count of the sent PFC frames per traffic class. Only shown when
Packit Bot 867fae
-s is given, or when requested explicitly.
Packit Bot 867fae
Packit Bot 867fae
.TP
Packit Bot 867fae
.B indications
Packit Bot 867fae
A read-only count of the received PFC frames per traffic class. Only shown
Packit Bot 867fae
when -s is given, or when requested explicitly.
Packit Bot 867fae
Packit Bot 867fae
.TP
Packit Bot 867fae
.B macsec-bypass \fR{ \fBon\fR | \fBoff\fR }
Packit Bot 867fae
Whether the sending station is capable of bypassing MACsec processing when
Packit Bot 867fae
MACsec is disabled.
Packit Bot 867fae
Packit Bot 867fae
.TP
Packit Bot 867fae
.B prio-pfc \fIPFC-MAP
Packit Bot 867fae
\fIPFC-MAP\fR uses the array parameter syntax, see
Packit Bot 867fae
.BR dcb (8)
Packit Bot 867fae
for details. Keys are priorities, values are on / off indicators of whether
Packit Bot 867fae
PFC is enabled for a given priority.
Packit Bot 867fae
Packit Bot 867fae
.TP
Packit Bot 867fae
.B delay \fIINTEGER
Packit Bot 867fae
The allowance made for round-trip propagation delay of the link in bits.
Packit Bot 867fae
The value shall be 0..65535.
Packit Bot 867fae
Packit Bot 867fae
.SH EXAMPLE & USAGE
Packit Bot 867fae
Packit Bot 867fae
Enable PFC on priorities 6 and 7, leaving the rest intact:
Packit Bot 867fae
Packit Bot 867fae
.P
Packit Bot 867fae
# dcb pfc set dev eth0 prio-pfc 6:on 7:on
Packit Bot 867fae
Packit Bot 867fae
Disable PFC of all priorities except 6 and 7, and configure delay to 4096
Packit Bot 867fae
bits:
Packit Bot 867fae
Packit Bot 867fae
.P
Packit Bot 867fae
# dcb pfc set dev eth0 prio-pfc all:off 6:on 7:on delay 0x1000
Packit Bot 867fae
Packit Bot 867fae
Show what was set:
Packit Bot 867fae
Packit Bot 867fae
.P
Packit Bot 867fae
# dcb pfc show dev eth0
Packit Bot 867fae
.br
Packit Bot 867fae
pfc-cap 8 macsec-bypass off delay 4096
Packit Bot 867fae
.br
Packit Bot 867fae
prio-pfc 0:off 1:off 2:off 3:off 4:off 5:off 6:on 7:on
Packit Bot 867fae
Packit Bot 867fae
.SH EXIT STATUS
Packit Bot 867fae
Exit status is 0 if command was successful or a positive integer upon failure.
Packit Bot 867fae
Packit Bot 867fae
.SH SEE ALSO
Packit Bot 867fae
.BR dcb (8)
Packit Bot 867fae
Packit Bot 867fae
.SH REPORTING BUGS
Packit Bot 867fae
Report any bugs to the Network Developers mailing list
Packit Bot 867fae
.B <netdev@vger.kernel.org>
Packit Bot 867fae
where the development and maintenance is primarily done.
Packit Bot 867fae
You do not have to be subscribed to the list to send a message there.
Packit Bot 867fae
Packit Bot 867fae
.SH AUTHOR
Packit Bot 867fae
Petr Machata <me@pmachata.org>