summaryrefslogtreecommitdiffstats
path: root/man/man8/rdma-system.8
blob: 554938eb8f1be5c265f7ec91fb060beb47b23203 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
.TH RDMA\-SYSTEM 8 "06 Jul 2017" "iproute2" "Linux"
.SH NAME
rdma-system \- RDMA subsystem configuration
.SH SYNOPSIS
.sp
.ad l
.in +8
.ti -8
.B rdma
.RI "[ " OPTIONS " ]"
.B sys
.RI  " { " COMMAND " | "
.BR help " }"
.sp

.ti -8
.IR OPTIONS " := { "
\fB\-V\fR[\fIersion\fR] |
\fB\-d\fR[\fIetails\fR] }

.ti -8
.B rdma system show

.ti -8
.B rdma system set
.BR netns
.BR NEWMODE

.ti -8
.B rdma system set
.BR privileged-qkey
.BR NEWSTATE

.ti -8
.B rdma system help

.SH "DESCRIPTION"
.SS rdma system set - set RDMA subsystem network namespace mode or
privileged qkey mode

.SS rdma system show - display RDMA subsystem network namespace mode and
privileged qkey state

.PP
.I "NEWMODE"
- specifies the RDMA subsystem mode. Either exclusive or shared.
When user wants to assign dedicated RDMA device to a particular
network namespace, exclusive mode should be set before creating
any network namespace. If there are active network namespaces and if
one or more RDMA devices exist, changing mode from shared to
exclusive returns error code EBUSY.

When RDMA subsystem is in shared mode, RDMA device is accessible in
all network namespace. When RDMA device isolation among multiple
network namespaces is not needed, shared mode can be used.

It is preferred to not change the subsystem mode when there is active
RDMA traffic running, even though it is supported.
.PP
.I "NEWSTATE"
- Specifies the new state of the privileged-qkey parameter, either on or off.
This parameter determines whether a non-privileged user is allowed to specify a
controlled QKEY or not.

.SH "EXAMPLES"
.PP
rdma system show
.RS 4
Shows the state of RDMA subsystem network namespace mode on the system and
the state of privileged qkey parameter.
.RE
.PP
rdma system set netns exclusive
.RS 4
Sets the RDMA subsystem in network namespace exclusive mode. In this mode RDMA devices
are visible only in single network namespace.
.RE
.PP
rdma system set netns shared
.RS 4
Sets the RDMA subsystem in network namespace shared mode. In this mode RDMA devices
are shared among network namespaces.
.RE
.PP
.PP
rdma system set privileged-qkey on
.RS 4
Sets the privileged-qkey parameter to on. In this state non-privileged user
is allowed to specify a controlled QKEY.
.RE
.PP
rdma system set privileged-qkey off
.RS 4
Sets the privileged-qkey parameter to off. In this state non-privileged user
is *not* allowed to specify a controlled QKEY.
.RE
.PP

.SH SEE ALSO
.BR rdma (8),
.BR rdma-link (8),
.BR rdma-resource (8),
.BR network_namespaces (7),
.BR namespaces (7),
.br

.SH AUTHOR
Parav Pandit <parav@mellanox.com>