From 706d4ce7bc5d9d5806dec1f75471b9a40809e3d0 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期一, 18 一月 2021 10:08:26 +0800
Subject: [PATCH] update

---
 /dev/null                   |    7 ---
 test_rdma/test.sh           |    3 +
 test_rdma/driver-install.md |   55 ++++++++++++++++++++++++---
 3 files changed, 52 insertions(+), 13 deletions(-)

diff --git a/load.sh b/load.sh
deleted file mode 100644
index 929fe14..0000000
--- a/load.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-modprobe -v qedr
-
-modprobe rdma_cm
-modprobe ib_uverbs
-modprobe rdma_ucm
-modprobe ib_ucm
-modprobe ib_umad
diff --git a/test_rdma/driver-install.md b/test_rdma/driver-install.md
index 87b0296..268b06f 100644
--- a/test_rdma/driver-install.md
+++ b/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 鈥搑 qede
+    depmod 鈥揳
+    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
+    ```
\ No newline at end of file
diff --git a/test_rdma/test.sh b/test_rdma/test.sh
new file mode 100644
index 0000000..e114095
--- /dev/null
+++ b/test_rdma/test.sh
@@ -0,0 +1,3 @@
+ibv_rc_pingpong -d qedr1 -g 0
+
+ibv_rc_pingpong -d qedr1 -g 0 192.168.1.1
\ No newline at end of file

--
Gitblit v1.8.0