mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 20:36:47 +07:00
045959db65
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>
23 lines
781 B
Plaintext
23 lines
781 B
Plaintext
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.
|