mirror of
https://github.com/torvalds/linux.git
synced 2024-12-12 22:23:55 +00:00
89052d784b
Add new entry to the RDMA-CM configfs that allows users to select default TOS for RDMA-CM QPs. This is useful for users that want to control the TOS for legacy applications without changing their code. Application that sets the TOS explicitly using the rdma_set_option API will continue to work as expected, meaning overriding the configfs value. CC: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Majd Dibbiny <majd@mellanox.com> Reviewed-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
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.
|
|
|
|
What: /config/rdma_cm/<hca>/ports/<port-num>/default_roce_tos
|
|
Date: February 7, 2017
|
|
KernelVersion: 4.11.0
|
|
Description: RDMA-CM QPs from HCA <hca> at port <port-num>
|
|
will be created with this TOS as default.
|
|
This can be overridden by using the rdma_set_option API.
|
|
The possible RoCE TOS values are 0-255.
|