From patchwork Wed Jun 6 15:25:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Pen X-Patchwork-Id: 10450443 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 C507360375 for ; Wed, 6 Jun 2018 15:25:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 939FE297A8 for ; Wed, 6 Jun 2018 15:25:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 88470297E4; Wed, 6 Jun 2018 15:25:59 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 E64D8297A8 for ; Wed, 6 Jun 2018 15:25:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752263AbeFFPZw (ORCPT ); Wed, 6 Jun 2018 11:25:52 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:39255 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932296AbeFFPZq (ORCPT ); Wed, 6 Jun 2018 11:25:46 -0400 Received: by mail-wr0-f194.google.com with SMTP id w7-v6so6745135wrn.6 for ; Wed, 06 Jun 2018 08:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=profitbricks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KGAq+pQw0TpaMsJla8UUU+0iIcsPn+eDczQshpFrKGY=; b=U2mV0VbSSp+PEwyxDefIeJj46WbzsUrv5aX7vzpwjVShHdP3iwySJWrLEISXWedmB1 gSMZuzh16I5QecBNGBGTNm2mEHUHzWu/jX+t4FXdR9UusgdSJU74+9olnwXtfsBT2Tb3 pFG3VpKIchgH4UCntDezOW9lNL6j14O7/GKjJhoAax7OjK2yZ2XBuk2+e/10pFfBNgM9 QTpUxaY1RKTP5zjD8Ej1pZsN3QPHHd48ayJAzgO9ExN900jnu7b5jWmSsi60OgCDZDsZ LDryl84zAMaqW4BQ0hf2e3eqJQtpyPxtKt19ArPV6mGg6ByfzfvmnEcjQ3eSBW4bZgQc HaOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KGAq+pQw0TpaMsJla8UUU+0iIcsPn+eDczQshpFrKGY=; b=MmQFE2giTaNFcRENlAo3JufmaBABTQFgp68ISy1Wez/A6fvY++bYou8lnr+Bk+U6+m 83vrJtIegLtTcpRgBIgrTX2pfa59VZCvgHq6wK/4AAgcOT78NkLtIpUyhuAG2lnVjvM5 naBKqkypcVTPvzLgNNCAJsyq6V9Ql2C1FmpGPFnknpW3yfnhmy54RGvZBpLmDtEEXi0e 9wiTa7/NFxLtwAMRlnlZLWATHHuNZphvZznys6f8vd3lSMRxNgK2x9a8Ekk0zHhHKPo9 CHRhOGAEMNW1StcNHbtOwKJNxfjMEEdm/TonItFPLmtu8zS3avXh4L1xySboZGUqq2i9 PdmQ== X-Gm-Message-State: APt69E1tLJnS6/a+2Oh18cIvEqlpSmWZYZx/exlxB7lvYJdvoh4aP/D0 zOWztYsVTUJEeu8ppbmEVHlSCc1ryQQ= X-Google-Smtp-Source: ADUXVKLGKF3I23o0e6lE8jHh3TOmhT/wwD9NjIH1MyY3udD9tqgDHJk00ODS06mB36vdkm8bM6vlfw== X-Received: by 2002:adf:8290:: with SMTP id 16-v6mr2677510wrc.38.1528298744772; Wed, 06 Jun 2018 08:25:44 -0700 (PDT) Received: from pb.pb.local ([62.217.45.26]) by smtp.gmail.com with ESMTPSA id n11-v6sm18645834wro.13.2018.06.06.08.25.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jun 2018 08:25:44 -0700 (PDT) From: Roman Pen To: linux-block@vger.kernel.org, linux-rdma@vger.kernel.org Cc: Jens Axboe , Christoph Hellwig , Sagi Grimberg , Bart Van Assche , Or Gerlitz , Doug Ledford , Danil Kipnis , Jack Wang , Roman Pen Subject: [PATCH v3 13/25] ibtrs: include client and server modules into kernel compilation Date: Wed, 6 Jun 2018 17:25:03 +0200 Message-Id: <20180606152515.25807-14-roman.penyaev@profitbricks.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20180606152515.25807-1-roman.penyaev@profitbricks.com> References: <20180606152515.25807-1-roman.penyaev@profitbricks.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add IBTRS Makefile, Kconfig and also corresponding lines into upper layer infiniband/ulp files. Signed-off-by: Roman Pen Signed-off-by: Danil Kipnis Cc: Jack Wang --- drivers/infiniband/Kconfig | 1 + drivers/infiniband/ulp/Makefile | 1 + drivers/infiniband/ulp/ibtrs/Kconfig | 20 ++++++++++++++++++++ drivers/infiniband/ulp/ibtrs/Makefile | 13 +++++++++++++ 4 files changed, 35 insertions(+) create mode 100644 drivers/infiniband/ulp/ibtrs/Kconfig create mode 100644 drivers/infiniband/ulp/ibtrs/Makefile diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig index 2a972ed6851b..10df5d2bb8fe 100644 --- a/drivers/infiniband/Kconfig +++ b/drivers/infiniband/Kconfig @@ -97,6 +97,7 @@ source "drivers/infiniband/ulp/srpt/Kconfig" source "drivers/infiniband/ulp/iser/Kconfig" source "drivers/infiniband/ulp/isert/Kconfig" +source "drivers/infiniband/ulp/ibtrs/Kconfig" source "drivers/infiniband/ulp/opa_vnic/Kconfig" source "drivers/infiniband/sw/rdmavt/Kconfig" diff --git a/drivers/infiniband/ulp/Makefile b/drivers/infiniband/ulp/Makefile index 437813c7b481..1c4f10dc8d49 100644 --- a/drivers/infiniband/ulp/Makefile +++ b/drivers/infiniband/ulp/Makefile @@ -5,3 +5,4 @@ obj-$(CONFIG_INFINIBAND_SRPT) += srpt/ obj-$(CONFIG_INFINIBAND_ISER) += iser/ obj-$(CONFIG_INFINIBAND_ISERT) += isert/ obj-$(CONFIG_INFINIBAND_OPA_VNIC) += opa_vnic/ +obj-$(CONFIG_INFINIBAND_IBTRS) += ibtrs/ diff --git a/drivers/infiniband/ulp/ibtrs/Kconfig b/drivers/infiniband/ulp/ibtrs/Kconfig new file mode 100644 index 000000000000..eaeb8f3f6b4e --- /dev/null +++ b/drivers/infiniband/ulp/ibtrs/Kconfig @@ -0,0 +1,20 @@ +config INFINIBAND_IBTRS + tristate + depends on INFINIBAND_ADDR_TRANS + +config INFINIBAND_IBTRS_CLIENT + tristate "IBTRS client module" + depends on INFINIBAND_ADDR_TRANS + select INFINIBAND_IBTRS + help + IBTRS client allows for simplified data transfer and connection + establishment over RDMA (InfiniBand, RoCE, iWarp). Uses BIO-like + READ/WRITE semantics and provides multipath capabilities. + +config INFINIBAND_IBTRS_SERVER + tristate "IBTRS server module" + depends on INFINIBAND_ADDR_TRANS + select INFINIBAND_IBTRS + help + IBTRS server module processing connection and IO requests received + from the IBTRS client module. diff --git a/drivers/infiniband/ulp/ibtrs/Makefile b/drivers/infiniband/ulp/ibtrs/Makefile new file mode 100644 index 000000000000..2a145f8d252a --- /dev/null +++ b/drivers/infiniband/ulp/ibtrs/Makefile @@ -0,0 +1,13 @@ +ibtrs-client-y := ibtrs-clt.o \ + ibtrs-clt-stats.o \ + ibtrs-clt-sysfs.o + +ibtrs-server-y := ibtrs-srv.o \ + ibtrs-srv-stats.o \ + ibtrs-srv-sysfs.o + +ibtrs-core-y := ibtrs.o + +obj-$(CONFIG_INFINIBAND_IBTRS) += ibtrs-core.o +obj-$(CONFIG_INFINIBAND_IBTRS_CLIENT) += ibtrs-client.o +obj-$(CONFIG_INFINIBAND_IBTRS_SERVER) += ibtrs-server.o