From patchwork Sat May 12 13:54:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhu Yanjun X-Patchwork-Id: 10395901 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6762160236 for ; Sat, 12 May 2018 13:51:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5982028F33 for ; Sat, 12 May 2018 13:51:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E52B28F4A; Sat, 12 May 2018 13:51:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C48B928F33 for ; Sat, 12 May 2018 13:51:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751048AbeELNvL (ORCPT ); Sat, 12 May 2018 09:51:11 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:49816 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750905AbeELNvK (ORCPT ); Sat, 12 May 2018 09:51:10 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w4CDondp125286; Sat, 12 May 2018 13:50:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : in-reply-to : references; s=corp-2017-10-26; bh=qj2yF9NnyqWJezU6T18yv7OKc1KQUg4ait+axHu4TqM=; b=q+0iXroQEh8YShzpOaKKZPjDu2xK19AqO0bCJZubl2s/yMywlT7l1ps84ANBWQ1rHnWF SpV5ktVmavb+yhyIAjNUi0RO0MKxBwMbvuuisMYCMa8exEDLF0eI3duZmu4DhLe/KuOE vomorQyUW4a+Dn0xd34h/gAungCeTS3R/OYO604a1NKTX7ASaNPUDYo7HEd9PGBKnGx/ HlNk8OeAlYaTUrozWCVR4/C7hlSm9mYvfjEB9P8TCDhQxY+sGnQxgBQw2NvZIt+lyxN6 XBUxW4VwPuPzdLCzEQ/HmkkC2zf9ijCu6MOb0IpufKzkHkjynrvh8mPg5WnOD2PlqLpq Qw== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2hwqqerrvj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 12 May 2018 13:50:49 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w4CDomWZ027713 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 12 May 2018 13:50:48 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w4CDom6P020785; Sat, 12 May 2018 13:50:48 GMT Received: from office-bj2017.cn.oracle.com (/10.182.69.78) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 12 May 2018 06:50:48 -0700 From: Zhu Yanjun To: monis@mellanox.com, dledford@redhat.com, jgg@ziepe.ca, linux-rdma@vger.kernel.org Subject: [PATCH 1/4] IB/rxe: add kernel option to use dual udp port Date: Sat, 12 May 2018 09:54:25 -0400 Message-Id: <1526133268-23926-2-git-send-email-yanjun.zhu@oracle.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526133268-23926-1-git-send-email-yanjun.zhu@oracle.com> References: <1526133268-23926-1-git-send-email-yanjun.zhu@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8890 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=797 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805120139 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the kernel option in Kconfig to control rxe udp dual port feature. Now the default is off. CC: Srinivas Eeda CC: Junxiao Bi Reviewed-by: Yuval Shaia Signed-off-by: Zhu Yanjun --- drivers/infiniband/sw/rxe/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) 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.