|
|
36cfb7 |
From edf1a3765c440bdd6a15ca7dd4d52a2264a67f69 Mon Sep 17 00:00:00 2001
|
|
|
36cfb7 |
From: Andrea Claudi <aclaudi@redhat.com>
|
|
|
36cfb7 |
Date: Mon, 25 Mar 2019 11:40:57 +0100
|
|
|
36cfb7 |
Subject: [PATCH] devlink: Update man pages and add resource man
|
|
|
36cfb7 |
|
|
|
36cfb7 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1644731
|
|
|
36cfb7 |
Upstream Status: iproute2.git commit 58b48c5d75e29
|
|
|
36cfb7 |
|
|
|
36cfb7 |
commit 58b48c5d75e2960dfcd947975911a170ae765975
|
|
|
36cfb7 |
Author: Arkadi Sharshevsky <arkadis@mellanox.com>
|
|
|
36cfb7 |
Date: Wed Feb 14 10:55:22 2018 +0200
|
|
|
36cfb7 |
|
|
|
36cfb7 |
devlink: Update man pages and add resource man
|
|
|
36cfb7 |
|
|
|
36cfb7 |
Add resource man, and update dev manual for reload command.
|
|
|
36cfb7 |
|
|
|
36cfb7 |
Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com>
|
|
|
36cfb7 |
Acked-by: Jiri Pirko <jiri@mellanox.com>
|
|
|
36cfb7 |
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
|
|
|
36cfb7 |
---
|
|
|
36cfb7 |
man/man8/devlink-dev.8 | 15 +++++++
|
|
|
36cfb7 |
man/man8/devlink-resource.8 | 78 +++++++++++++++++++++++++++++++++++++
|
|
|
36cfb7 |
man/man8/devlink.8 | 1 +
|
|
|
36cfb7 |
3 files changed, 94 insertions(+)
|
|
|
36cfb7 |
create mode 100644 man/man8/devlink-resource.8
|
|
|
36cfb7 |
|
|
|
36cfb7 |
diff --git a/man/man8/devlink-dev.8 b/man/man8/devlink-dev.8
|
|
|
36cfb7 |
index b074d57a19369..7c749ddabaeeb 100644
|
|
|
36cfb7 |
--- a/man/man8/devlink-dev.8
|
|
|
36cfb7 |
+++ b/man/man8/devlink-dev.8
|
|
|
36cfb7 |
@@ -42,6 +42,10 @@ devlink-dev \- devlink device configuration
|
|
|
36cfb7 |
.BR "devlink dev eswitch show"
|
|
|
36cfb7 |
.IR DEV
|
|
|
36cfb7 |
|
|
|
36cfb7 |
+.ti -8
|
|
|
36cfb7 |
+.BR "devlink dev reload"
|
|
|
36cfb7 |
+.IR DEV
|
|
|
36cfb7 |
+
|
|
|
36cfb7 |
.SH "DESCRIPTION"
|
|
|
36cfb7 |
.SS devlink dev show - display devlink device attributes
|
|
|
36cfb7 |
|
|
|
36cfb7 |
@@ -94,6 +98,12 @@ Set eswitch encapsulation support
|
|
|
36cfb7 |
.I enable
|
|
|
36cfb7 |
- Enable encapsulation support
|
|
|
36cfb7 |
|
|
|
36cfb7 |
+.SS devlink dev reload - perform hot reload of the driver.
|
|
|
36cfb7 |
+
|
|
|
36cfb7 |
+.PP
|
|
|
36cfb7 |
+.I "DEV"
|
|
|
36cfb7 |
+- Specifies the devlink device to reload.
|
|
|
36cfb7 |
+
|
|
|
36cfb7 |
.SH "EXAMPLES"
|
|
|
36cfb7 |
.PP
|
|
|
36cfb7 |
devlink dev show
|
|
|
36cfb7 |
@@ -114,6 +124,11 @@ Shows the eswitch mode of specified devlink device.
|
|
|
36cfb7 |
devlink dev eswitch set pci/0000:01:00.0 mode switchdev
|
|
|
36cfb7 |
.RS 4
|
|
|
36cfb7 |
Sets the eswitch mode of specified devlink device to switchdev.
|
|
|
36cfb7 |
+.RE
|
|
|
36cfb7 |
+.PP
|
|
|
36cfb7 |
+devlink dev reload pci/0000:01:00.0
|
|
|
36cfb7 |
+.RS 4
|
|
|
36cfb7 |
+Performs hot reload of specified devlink device.
|
|
|
36cfb7 |
|
|
|
36cfb7 |
.SH SEE ALSO
|
|
|
36cfb7 |
.BR devlink (8),
|
|
|
36cfb7 |
diff --git a/man/man8/devlink-resource.8 b/man/man8/devlink-resource.8
|
|
|
36cfb7 |
new file mode 100644
|
|
|
36cfb7 |
index 0000000000000..b8f788060427b
|
|
|
36cfb7 |
--- /dev/null
|
|
|
36cfb7 |
+++ b/man/man8/devlink-resource.8
|
|
|
36cfb7 |
@@ -0,0 +1,78 @@
|
|
|
36cfb7 |
+.TH DEVLINK\-RESOURCE 8 "11 Feb 2018" "iproute2" "Linux"
|
|
|
36cfb7 |
+.SH NAME
|
|
|
36cfb7 |
+devlink-resource \- devlink device resource configuration
|
|
|
36cfb7 |
+.SH SYNOPSIS
|
|
|
36cfb7 |
+.sp
|
|
|
36cfb7 |
+.ad l
|
|
|
36cfb7 |
+.in +8
|
|
|
36cfb7 |
+.ti -8
|
|
|
36cfb7 |
+.B devlink
|
|
|
36cfb7 |
+.RI "[ " OPTIONS " ]"
|
|
|
36cfb7 |
+.B resource
|
|
|
36cfb7 |
+.RI " { " COMMAND " | "
|
|
|
36cfb7 |
+.BR help " }"
|
|
|
36cfb7 |
+.sp
|
|
|
36cfb7 |
+
|
|
|
36cfb7 |
+.ti -8
|
|
|
36cfb7 |
+.IR OPTIONS " := { "
|
|
|
36cfb7 |
+\fB\-v\fR[\fIerbose\fR] }
|
|
|
36cfb7 |
+
|
|
|
36cfb7 |
+.ti -8
|
|
|
36cfb7 |
+.B devlink resource show
|
|
|
36cfb7 |
+.IR DEV
|
|
|
36cfb7 |
+
|
|
|
36cfb7 |
+.ti -8
|
|
|
36cfb7 |
+.B devlink resource help
|
|
|
36cfb7 |
+
|
|
|
36cfb7 |
+.ti -8
|
|
|
36cfb7 |
+.BR "devlink resource set"
|
|
|
36cfb7 |
+.IR DEV
|
|
|
36cfb7 |
+.BI path " RESOURCE_PATH"
|
|
|
36cfb7 |
+.BI size " RESOURCE_SIZE"
|
|
|
36cfb7 |
+
|
|
|
36cfb7 |
+.SH "DESCRIPTION"
|
|
|
36cfb7 |
+.SS devlink resource show - display devlink device's resosources
|
|
|
36cfb7 |
+
|
|
|
36cfb7 |
+.PP
|
|
|
36cfb7 |
+.I "DEV"
|
|
|
36cfb7 |
+- specifies the devlink device to show.
|
|
|
36cfb7 |
+
|
|
|
36cfb7 |
+.in +4
|
|
|
36cfb7 |
+Format is:
|
|
|
36cfb7 |
+.in +2
|
|
|
36cfb7 |
+BUS_NAME/BUS_ADDRESS
|
|
|
36cfb7 |
+
|
|
|
36cfb7 |
+.SS devlink resource set - sets resource size of specific resource
|
|
|
36cfb7 |
+
|
|
|
36cfb7 |
+.PP
|
|
|
36cfb7 |
+.I "DEV"
|
|
|
36cfb7 |
+- specifies the devlink device.
|
|
|
36cfb7 |
+
|
|
|
36cfb7 |
+.TP
|
|
|
36cfb7 |
+.BI path " RESOURCE_PATH"
|
|
|
36cfb7 |
+Resource's path.
|
|
|
36cfb7 |
+
|
|
|
36cfb7 |
+.TP
|
|
|
36cfb7 |
+.BI size " RESOURCE_SIZE"
|
|
|
36cfb7 |
+The new resource's size.
|
|
|
36cfb7 |
+
|
|
|
36cfb7 |
+.SH "EXAMPLES"
|
|
|
36cfb7 |
+.PP
|
|
|
36cfb7 |
+devlink resource show pci/0000:01:00.0
|
|
|
36cfb7 |
+.RS 4
|
|
|
36cfb7 |
+Shows the resources of the specified devlink device.
|
|
|
36cfb7 |
+.RE
|
|
|
36cfb7 |
+.PP
|
|
|
36cfb7 |
+devlink resource set pci/0000:01:00.0 /kvd/linear 98304
|
|
|
36cfb7 |
+.RS 4
|
|
|
36cfb7 |
+Sets the size of the specified resource for the specified devlink device.
|
|
|
36cfb7 |
+
|
|
|
36cfb7 |
+.SH SEE ALSO
|
|
|
36cfb7 |
+.BR devlink (8),
|
|
|
36cfb7 |
+.BR devlink-port (8),
|
|
|
36cfb7 |
+.BR devlink-sb (8),
|
|
|
36cfb7 |
+.BR devlink-monitor (8),
|
|
|
36cfb7 |
+.br
|
|
|
36cfb7 |
+
|
|
|
36cfb7 |
+.SH AUTHOR
|
|
|
36cfb7 |
+Arkadi Sharshevsky <arkadis@mellanox.com>
|
|
|
36cfb7 |
diff --git a/man/man8/devlink.8 b/man/man8/devlink.8
|
|
|
36cfb7 |
index a480766cbbdbe..6bf398274a612 100644
|
|
|
36cfb7 |
--- a/man/man8/devlink.8
|
|
|
36cfb7 |
+++ b/man/man8/devlink.8
|
|
|
36cfb7 |
@@ -87,6 +87,7 @@ Exit status is 0 if command was successful or a positive integer upon failure.
|
|
|
36cfb7 |
.BR devlink-port (8),
|
|
|
36cfb7 |
.BR devlink-monitor (8),
|
|
|
36cfb7 |
.BR devlink-sb (8),
|
|
|
36cfb7 |
+.BR devlink-resource (8),
|
|
|
36cfb7 |
.br
|
|
|
36cfb7 |
|
|
|
36cfb7 |
.SH REPORTING BUGS
|
|
|
36cfb7 |
--
|
|
|
36cfb7 |
2.20.1
|
|
|
36cfb7 |
|