forked from microsoft/WSL2-Linux-Kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
7 changed files
with
504 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
What: /config/rdma_cm | ||
Date: November 29, 2015 | ||
KernelVersion: 4.4.0 | ||
Description: Interface is used to configure RDMA-cable HCAs in respect to | ||
RDMA-CM attributes. | ||
|
||
Attributes are visible only when configfs is mounted. To mount | ||
configfs in /config directory use: | ||
# mount -t configfs none /config/ | ||
|
||
In order to set parameters related to a specific HCA, a directory | ||
for this HCA has to be created: | ||
mkdir -p /config/rdma_cm/<hca> | ||
|
||
|
||
What: /config/rdma_cm/<hca>/ports/<port-num>/default_roce_mode | ||
Date: November 29, 2015 | ||
KernelVersion: 4.4.0 | ||
Description: RDMA-CM based connections from HCA <hca> at port <port-num> | ||
will be initiated with this RoCE type as default. | ||
The possible RoCE types are either "IB/RoCE v1" or "RoCE v2". | ||
This parameter has RW access. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.