devlink: Update man pages and add resource man
Add resource man, and update dev manual for reload command. Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
ead180274c
commit
58b48c5d75
|
|
@ -42,6 +42,10 @@ devlink-dev \- devlink device configuration
|
||||||
.BR "devlink dev eswitch show"
|
.BR "devlink dev eswitch show"
|
||||||
.IR DEV
|
.IR DEV
|
||||||
|
|
||||||
|
.ti -8
|
||||||
|
.BR "devlink dev reload"
|
||||||
|
.IR DEV
|
||||||
|
|
||||||
.SH "DESCRIPTION"
|
.SH "DESCRIPTION"
|
||||||
.SS devlink dev show - display devlink device attributes
|
.SS devlink dev show - display devlink device attributes
|
||||||
|
|
||||||
|
|
@ -94,6 +98,12 @@ Set eswitch encapsulation support
|
||||||
.I enable
|
.I enable
|
||||||
- Enable encapsulation support
|
- Enable encapsulation support
|
||||||
|
|
||||||
|
.SS devlink dev reload - perform hot reload of the driver.
|
||||||
|
|
||||||
|
.PP
|
||||||
|
.I "DEV"
|
||||||
|
- Specifies the devlink device to reload.
|
||||||
|
|
||||||
.SH "EXAMPLES"
|
.SH "EXAMPLES"
|
||||||
.PP
|
.PP
|
||||||
devlink dev show
|
devlink dev show
|
||||||
|
|
@ -114,6 +124,11 @@ Shows the eswitch mode of specified devlink device.
|
||||||
devlink dev eswitch set pci/0000:01:00.0 mode switchdev
|
devlink dev eswitch set pci/0000:01:00.0 mode switchdev
|
||||||
.RS 4
|
.RS 4
|
||||||
Sets the eswitch mode of specified devlink device to switchdev.
|
Sets the eswitch mode of specified devlink device to switchdev.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
devlink dev reload pci/0000:01:00.0
|
||||||
|
.RS 4
|
||||||
|
Performs hot reload of specified devlink device.
|
||||||
|
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR devlink (8),
|
.BR devlink (8),
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,78 @@
|
||||||
|
.TH DEVLINK\-RESOURCE 8 "11 Feb 2018" "iproute2" "Linux"
|
||||||
|
.SH NAME
|
||||||
|
devlink-resource \- devlink device resource configuration
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.sp
|
||||||
|
.ad l
|
||||||
|
.in +8
|
||||||
|
.ti -8
|
||||||
|
.B devlink
|
||||||
|
.RI "[ " OPTIONS " ]"
|
||||||
|
.B resource
|
||||||
|
.RI " { " COMMAND " | "
|
||||||
|
.BR help " }"
|
||||||
|
.sp
|
||||||
|
|
||||||
|
.ti -8
|
||||||
|
.IR OPTIONS " := { "
|
||||||
|
\fB\-v\fR[\fIerbose\fR] }
|
||||||
|
|
||||||
|
.ti -8
|
||||||
|
.B devlink resource show
|
||||||
|
.IR DEV
|
||||||
|
|
||||||
|
.ti -8
|
||||||
|
.B devlink resource help
|
||||||
|
|
||||||
|
.ti -8
|
||||||
|
.BR "devlink resource set"
|
||||||
|
.IR DEV
|
||||||
|
.BI path " RESOURCE_PATH"
|
||||||
|
.BI size " RESOURCE_SIZE"
|
||||||
|
|
||||||
|
.SH "DESCRIPTION"
|
||||||
|
.SS devlink resource show - display devlink device's resosources
|
||||||
|
|
||||||
|
.PP
|
||||||
|
.I "DEV"
|
||||||
|
- specifies the devlink device to show.
|
||||||
|
|
||||||
|
.in +4
|
||||||
|
Format is:
|
||||||
|
.in +2
|
||||||
|
BUS_NAME/BUS_ADDRESS
|
||||||
|
|
||||||
|
.SS devlink resource set - sets resource size of specific resource
|
||||||
|
|
||||||
|
.PP
|
||||||
|
.I "DEV"
|
||||||
|
- specifies the devlink device.
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.BI path " RESOURCE_PATH"
|
||||||
|
Resource's path.
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.BI size " RESOURCE_SIZE"
|
||||||
|
The new resource's size.
|
||||||
|
|
||||||
|
.SH "EXAMPLES"
|
||||||
|
.PP
|
||||||
|
devlink resource show pci/0000:01:00.0
|
||||||
|
.RS 4
|
||||||
|
Shows the resources of the specified devlink device.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
devlink resource set pci/0000:01:00.0 /kvd/linear 98304
|
||||||
|
.RS 4
|
||||||
|
Sets the size of the specified resource for the specified devlink device.
|
||||||
|
|
||||||
|
.SH SEE ALSO
|
||||||
|
.BR devlink (8),
|
||||||
|
.BR devlink-port (8),
|
||||||
|
.BR devlink-sb (8),
|
||||||
|
.BR devlink-monitor (8),
|
||||||
|
.br
|
||||||
|
|
||||||
|
.SH AUTHOR
|
||||||
|
Arkadi Sharshevsky <arkadis@mellanox.com>
|
||||||
|
|
@ -103,6 +103,7 @@ Exit status is 0 if command was successful or a positive integer upon failure.
|
||||||
.BR devlink-port (8),
|
.BR devlink-port (8),
|
||||||
.BR devlink-monitor (8),
|
.BR devlink-monitor (8),
|
||||||
.BR devlink-sb (8),
|
.BR devlink-sb (8),
|
||||||
|
.BR devlink-resource (8),
|
||||||
.br
|
.br
|
||||||
|
|
||||||
.SH REPORTING BUGS
|
.SH REPORTING BUGS
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue