wangzhengquan
2021-01-18 706d4ce7bc5d9d5806dec1f75471b9a40809e3d0
update
1个文件已删除
1个文件已添加
1个文件已修改
65 ■■■■ 已修改文件
load.sh 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
test_rdma/driver-install.md 55 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
test_rdma/test.sh 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
load.sh
File was deleted
test_rdma/driver-install.md
@@ -1,11 +1,9 @@
## RoCE Configuration for Ubuntu
To configure RoCE on the adapter for an Ubuntu host, RDMA must be installed
and configured on the Ubuntu host.
To configure and set up RoCE for Ubuntu 14.04.5/16.04.1 Linux:
To configure RoCE on the adapter for an Ubuntu host, RDMA must be installed and configured on the Ubuntu host. To configure and set up RoCE for Ubuntu 14.04.5/16.04.1 Linux:
1. When you begin installing the Ubuntu server, verify if the basic packages,
  modules, and tools are available for Ethernet and RDMA. Log in as ROOT,and install all required packages.
1. When you begin installing the Ubuntu server, verify if the basic packages, modules, and tools are available for Ethernet and RDMA. Log in as ROOT,and install all required packages.
    a. Install the basic packages required for Ubuntu:
    
@@ -68,8 +66,53 @@
    ```
4. Log into the system again, or verify after reboot. Then issue the following command:
 ```bash
#ulimit -l
ulimit -l
 ```
You should get the output as `unlimited` .
5. Reboot the system.
6. To allow the device to be recognized as an InfiniBand device that can be used by OFED, install the FastLinQ package by issuing the following commands:
 ```bash
cd fastlinq-X.X.X.X
make clean
make install
```
7. Install the libqedr libraries to work with RDMA user space applications using one of the following command options:
    Option 1:
    ```bash
    cd fastlinq-X.X.X.X
    make libqedr_install
    ```
    Option 2:
    ```bash
    cd fastlinq-X.X.X.X/libqedr-X.X.X.X/
    ./configure --prefix=/usr --libdir=${exec_prefix}/lib --sysconfdir=/etc make install
    ```
8. Before loading the QLogic Ethernet and RDMA drivers, uninstall the existing out-of-box or inbox drivers by issuing the following commands:
    ```bash
    modprobe –r qede
    depmod –a
    modprobe -v qedr
    ```
9. Load the RDMA modules by issuing the following commands. You must perform this step whenever you reboot the system.
    ```bash
     modprobe rdma_cm
     modprobe ib_uverbs
     modprobe rdma_ucm
     modprobe ib_ucm
     modprobe ib_umad
    ```
10. To list RoCE devices, issue the following command:
    ```bash
    ibv_devinfo
    ```
test_rdma/test.sh
New file
@@ -0,0 +1,3 @@
ibv_rc_pingpong -d qedr1 -g 0
ibv_rc_pingpong -d qedr1 -g 0 192.168.1.1