diff mbox

[1/4] IB/rxe: add kernel option to use dual udp port

Message ID 1526133268-23926-2-git-send-email-yanjun.zhu@oracle.com (mailing list archive)
State Rejected
Headers show

Commit Message

Zhu Yanjun May 12, 2018, 1:54 p.m. UTC
Add the kernel option in Kconfig to control rxe udp dual port feature.
Now the default is off.

CC: Srinivas Eeda <srinivas.eeda@oracle.com>
CC: Junxiao Bi <junxiao.bi@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
---
 drivers/infiniband/sw/rxe/Kconfig | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff mbox

Patch

diff --git a/drivers/infiniband/sw/rxe/Kconfig b/drivers/infiniband/sw/rxe/Kconfig
index bad4a57..7ca4448 100644
--- a/drivers/infiniband/sw/rxe/Kconfig
+++ b/drivers/infiniband/sw/rxe/Kconfig
@@ -24,3 +24,13 @@  config RDMA_RXE
 	following wiki page under "configure Soft-RoCE (RXE)" section:
 
 	https://github.com/linux-rdma/rdma-core/blob/master/Documentation/rxe.md
+
+config RDMA_RXE_DUAL_PORT
+	tristate "Enable dual udp ports in Soft RoCE"
+	depends on RDMA_RXE
+	default n
+	help
+	When the udp port 4791 fails, the new udp port 4891 is used to resume.
+
+	Say Y here if you want to enable dual ports in Soft RoCE.
+	Say N here if you are unsure.