From patchwork Tue Sep 22 07:31:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 7235631 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C6A4C9F4DC for ; Tue, 22 Sep 2015 07:32:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C95F320603 for ; Tue, 22 Sep 2015 07:32:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 940312084C for ; Tue, 22 Sep 2015 07:32:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932370AbbIVHcm (ORCPT ); Tue, 22 Sep 2015 03:32:42 -0400 Received: from [193.47.165.129] ([193.47.165.129]:60073 "EHLO mellanox.co.il" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932429AbbIVHcm (ORCPT ); Tue, 22 Sep 2015 03:32:42 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from kamalh@mellanox.com) with ESMTPS (AES256-SHA encrypted); 22 Sep 2015 09:31:53 +0200 Received: from r-vnc04.mtr.labs.mlnx (r-vnc04.mtr.labs.mlnx [10.208.0.116]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id t8M7Vdtr020646; Tue, 22 Sep 2015 10:31:42 +0300 From: Kamal Heib To: Doug Ledford Cc: linux-rdma@vger.kernel.org, Tal Alon , Liran Liss , Kamal Heib , Amir Vadai Subject: [PATCH rdma-next V1 31/32] IB/rxe: Add Soft-RoCE to kbuild and makefiles Date: Tue, 22 Sep 2015 10:31:14 +0300 Message-Id: <1442907075-13228-32-git-send-email-kamalh@mellanox.com> X-Mailer: git-send-email 1.7.8.2 In-Reply-To: <1442907075-13228-1-git-send-email-kamalh@mellanox.com> References: <1442907075-13228-1-git-send-email-kamalh@mellanox.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Kconfig and Makefiles for RXE driver Signed-off-by: Kamal Heib Signed-off-by: Amir Vadai Reviewed-by: Haggai Eran --- drivers/staging/Kconfig | 2 ++ drivers/staging/Makefile | 1 + drivers/staging/rxe/Kconfig | 23 +++++++++++++++++++++++ drivers/staging/rxe/Makefile | 24 ++++++++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 drivers/staging/rxe/Kconfig create mode 100644 drivers/staging/rxe/Makefile diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig index 39d9505..9755cd8 100644 --- a/drivers/staging/Kconfig +++ b/drivers/staging/Kconfig @@ -112,4 +112,6 @@ source "drivers/staging/wilc1000/Kconfig" source "drivers/staging/most/Kconfig" +source "drivers/staging/rxe/Kconfig" + endif # STAGING diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile index e4f33d9..ac573a8 100644 --- a/drivers/staging/Makefile +++ b/drivers/staging/Makefile @@ -48,3 +48,4 @@ obj-$(CONFIG_FB_TFT) += fbtft/ obj-$(CONFIG_FSL_MC_BUS) += fsl-mc/ obj-$(CONFIG_WILC1000) += wilc1000/ obj-$(CONFIG_MOST) += most/ +obj-$(CONFIG_INFINIBAND_RXE) += rxe/ diff --git a/drivers/staging/rxe/Kconfig b/drivers/staging/rxe/Kconfig new file mode 100644 index 0000000..649b7be --- /dev/null +++ b/drivers/staging/rxe/Kconfig @@ -0,0 +1,23 @@ +config INFINIBAND_RXE + tristate "Software RDMA over Ethernet (RoCE) driver" + depends on INET && PCI && INFINIBAND + ---help--- + This driver implements the InfiniBand RDMA transport over + the Linux network stack. It enables a system with a + standard Ethernet adapter to interoperate with a RoCE + adapter or with another system running the RXE driver. + Documentation on InfiniBand and RoCE can be downloaded at + www.infinibandta.org and www.openfabrics.org. (See also + siw which is a similar software driver for iWARP.) + + The driver is split into two layers, one interfaces with the + Linux RDMA stack and implements a kernel or user space + verbs API. The user space verbs API requires a support + library named librxe which is loaded by the generic user + space verbs API, libibverbs. The other layer interfaces + with the Linux network stack at layer 3. + + To configure and work with soft-RoCE driver please use the + following wiki page under "configure Soft-RoCE (RXE)" section: + + https://github.com/SoftRoCE/rxe-dev/wiki/rxe-dev:-Home diff --git a/drivers/staging/rxe/Makefile b/drivers/staging/rxe/Makefile new file mode 100644 index 0000000..7cf7774 --- /dev/null +++ b/drivers/staging/rxe/Makefile @@ -0,0 +1,24 @@ +obj-$(CONFIG_INFINIBAND_RXE) += ib_rxe.o + +ib_rxe-y := \ + rxe.o \ + rxe_comp.o \ + rxe_req.o \ + rxe_resp.o \ + rxe_recv.o \ + rxe_pool.o \ + rxe_queue.o \ + rxe_verbs.o \ + rxe_av.o \ + rxe_srq.o \ + rxe_qp.o \ + rxe_cq.o \ + rxe_mr.o \ + rxe_dma.o \ + rxe_opcode.o \ + rxe_mmap.o \ + rxe_icrc.o \ + rxe_mcast.o \ + rxe_task.o \ + rxe_net.o \ + rxe_sysfs.o