| 1 |
.TH DEVLINK\-LC 8 "20 Apr 2022" "iproute2" "Linux" |
| 2 |
.SH NAME |
| 3 |
devlink-lc \- devlink line card configuration |
| 4 |
.SH SYNOPSIS |
| 5 |
.sp |
| 6 |
.ad l |
| 7 |
.in +8 |
| 8 |
.ti -8 |
| 9 |
.B devlink |
| 10 |
.RI "[ " OPTIONS " ]" |
| 11 |
.B lc |
| 12 |
.RI " { " COMMAND " | " |
| 13 |
.BR help " }" |
| 14 |
.sp |
| 15 |
|
| 16 |
.ti -8 |
| 17 |
.IR OPTIONS " := { " |
| 18 |
\fB\-V\fR[\fIersion\fR] } |
| 19 |
|
| 20 |
.ti -8 |
| 21 |
.B "devlink lc set" |
| 22 |
.IB DEV " lc " LC_INDEX |
| 23 |
.RB [ " type " { |
| 24 |
.IR LC_TYPE " | " |
| 25 |
.BR notype " } ] " |
| 26 |
|
| 27 |
.ti -8 |
| 28 |
.B "devlink lc show" |
| 29 |
.RI "[ " DEV " [ " |
| 30 |
.BI lc " LC_INDEX |
| 31 |
] ] |
| 32 |
|
| 33 |
.ti -8 |
| 34 |
.B devlink lc help |
| 35 |
|
| 36 |
.SH "DESCRIPTION" |
| 37 |
.SS devlink lc set - change line card attributes |
| 38 |
|
| 39 |
.PP |
| 40 |
.TP |
| 41 |
.I "DEV" |
| 42 |
Specifies the devlink device to operate on. |
| 43 |
|
| 44 |
.in +4 |
| 45 |
Format is: |
| 46 |
.in +2 |
| 47 |
BUS_NAME/BUS_ADDRESS |
| 48 |
|
| 49 |
.TP |
| 50 |
.BI lc " LC_INDEX " |
| 51 |
Specifies index of a line card slot to set. |
| 52 |
|
| 53 |
.TP |
| 54 |
.BR type " { " |
| 55 |
.IR LC_TYPE " | " |
| 56 |
.BR notype " } " |
| 57 |
Type of line card to provision. Each driver provides a list of supported line card types which is shown in the output of |
| 58 |
.BR "devlink lc show " command. |
| 59 |
|
| 60 |
.SS devlink lc show - display line card attributes |
| 61 |
|
| 62 |
.PP |
| 63 |
.TP |
| 64 |
.I "DEV" |
| 65 |
.RB "Specifies the devlink device to operate on. If this and " lc " arguments are omitted all line cards of all devices are listed. |
| 66 |
|
| 67 |
.TP |
| 68 |
.BI lc " LC_INDEX " |
| 69 |
Specifies index of a line card slot to show. |
| 70 |
|
| 71 |
.SH "EXAMPLES" |
| 72 |
.PP |
| 73 |
devlink lc show |
| 74 |
.RS 4 |
| 75 |
Shows the state of all line cards on the system. |
| 76 |
.RE |
| 77 |
.PP |
| 78 |
devlink lc show pci/0000:01:00.0 lc 1 |
| 79 |
.RS 4 |
| 80 |
Shows the state of line card with index 1. |
| 81 |
.RE |
| 82 |
.PP |
| 83 |
devlink lc set pci/0000:01:00.0 lc 1 type 16x100G |
| 84 |
.RS 4 |
| 85 |
.RI "Sets type of specified line card to type " 16x100G "." |
| 86 |
.RE |
| 87 |
.PP |
| 88 |
devlink lc set pci/0000:01:00.0 lc 1 notype |
| 89 |
.RS 4 |
| 90 |
Clears provisioning on a line card. |
| 91 |
.RE |
| 92 |
|
| 93 |
.SH SEE ALSO |
| 94 |
.BR devlink (8), |
| 95 |
.BR devlink-dev (8), |
| 96 |
.BR devlink-port (8), |
| 97 |
.BR devlink-monitor (8), |
| 98 |
.br |
| 99 |
|
| 100 |
.SH AUTHOR |
| 101 |
Jiri Pirko <[email protected]> |