diff options
author | Matan Barak <matanb@mellanox.com> | 2015-12-23 07:56:55 -0500 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-12-23 10:39:52 -0500 |
commit | 045959db65c67d7189dc89ecddb5fa10aafa449d (patch) | |
tree | 6b29c2d20fa2a8eb119f90221c04762c7ef75f2d /Documentation | |
parent | 218a773f7632d8553638c76d3a5a8c77e82ccea1 (diff) |
IB/cma: Add configfs for rdma_cm
Users would like to control the behaviour of rdma_cm.
For example, old applications which don't set the
required RoCE gid type could be executed on RoCE V2
network types. In order to support this configuration,
we implement a configfs for rdma_cm.
In order to use the configfs, one needs to mount it and
mkdir <IB device name> inside rdma_cm directory.
The patch adds support for a single configuration file,
default_roce_mode. The mode can either be "IB/RoCE v1" or
"RoCE v2".
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/ABI/testing/configfs-rdma_cm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/configfs-rdma_cm b/Documentation/ABI/testing/configfs-rdma_cm new file mode 100644 index 000000000000..5c389aaf5291 --- /dev/null +++ b/Documentation/ABI/testing/configfs-rdma_cm | |||
@@ -0,0 +1,22 @@ | |||
1 | What: /config/rdma_cm | ||
2 | Date: November 29, 2015 | ||
3 | KernelVersion: 4.4.0 | ||
4 | Description: Interface is used to configure RDMA-cable HCAs in respect to | ||
5 | RDMA-CM attributes. | ||
6 | |||
7 | Attributes are visible only when configfs is mounted. To mount | ||
8 | configfs in /config directory use: | ||
9 | # mount -t configfs none /config/ | ||
10 | |||
11 | In order to set parameters related to a specific HCA, a directory | ||
12 | for this HCA has to be created: | ||
13 | mkdir -p /config/rdma_cm/<hca> | ||
14 | |||
15 | |||
16 | What: /config/rdma_cm/<hca>/ports/<port-num>/default_roce_mode | ||
17 | Date: November 29, 2015 | ||
18 | KernelVersion: 4.4.0 | ||
19 | Description: RDMA-CM based connections from HCA <hca> at port <port-num> | ||
20 | will be initiated with this RoCE type as default. | ||
21 | The possible RoCE types are either "IB/RoCE v1" or "RoCE v2". | ||
22 | This parameter has RW access. | ||