From patchwork Fri May 18 13:04:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Pen X-Patchwork-Id: 10410603 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 4D7D96031B for ; Fri, 18 May 2018 13:06:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D25C2897C for ; Fri, 18 May 2018 13:06:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 313AE28980; Fri, 18 May 2018 13:06:20 +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 189CC28984 for ; Fri, 18 May 2018 13:06:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752447AbeERNGM (ORCPT ); Fri, 18 May 2018 09:06:12 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:54508 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752650AbeERNFo (ORCPT ); Fri, 18 May 2018 09:05:44 -0400 Received: by mail-wm0-f66.google.com with SMTP id f6-v6so14010493wmc.4 for ; Fri, 18 May 2018 06:05:43 -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=QPF7pMJlqin0T2VPpjQBL+uAXrCOHtgJLqArs8E2ssY=; b=uW9ru5poMqAg0QghlvkgYY2aq7KfA9e02qq7pNzlOZd58XIVl610qmpmyYQIS/rIpI nYcjHKeYNM+YbF1konKjNpQyd7eL9R1QfC0AQhpmFs5qNvA7c7Lm2+znbToEpJc/zwLy RrbOJbc7Y1xQMNXYKmj6C25Sa6GToJckR0ACKF+CTjjjjuGwZh0VJkNLusX6kuL0M1h3 9Wiul/wZX7euz+qUxVa7uiQaohSQjLzH7yiEjv4azPkQaqur0eEyWBFBOTaVIJx8cXhX PD4iKJsIRcEIImduJz4eGvihKzcsol6987vXDti5mXOGTQ3L1uDS8bUdSpWhdFTheNhH VHIQ== 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=QPF7pMJlqin0T2VPpjQBL+uAXrCOHtgJLqArs8E2ssY=; b=uYL4JnEZf3q78oj7OBzjIAwcW86tBeJmu1WMTc+TZMc/57rTcXhMxND16uJ9YmR/OJ iaI3A1MVe0ekClEY4j1IICPpFe35+l5UWEi+uEvXpsy29xAF5zPdr8O+TArQeUxNY/qT +SejcSN2QZJl/U3iCoOPlYLnpZ9U3VwH94E+eQPDfcBivBteUizyADe4Cx7Vv/+jlIWC pz/5CrqCNioSPw6XcrTq7cuxHEh4WVXOY3TQB2JpoRBvZrBMA51mIRSMt6PoyG394cIT HrVung3IhJd/SXaa+Xw66yruyUINEjlAOvWxo7TrvyajClZ3Gi0BSbDXvqRvZTMu1yk/ 6lWg== X-Gm-Message-State: ALKqPwf/YZrbnGJr67eMS18btbQ4lDpIlgk2JsZsgNWTtoEMU3ms18Z5 8LlDEKv7ATeGIEN14oeDQxH5TDpi X-Google-Smtp-Source: AB8JxZrVPxWYoxSv2tqCnRfwTTjQ5x/adDKmQI5/rTkP52O8LL8gA/Vlpqtrn+zRyaLNec7kL4ocUw== X-Received: by 2002:a1c:101:: with SMTP id 1-v6mr4587543wmb.28.1526648742917; Fri, 18 May 2018 06:05:42 -0700 (PDT) Received: from pb.pb.local ([62.217.45.26]) by smtp.gmail.com with ESMTPSA id m35-v6sm7639980wrm.51.2018.05.18.06.05.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 06:05:42 -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 , Swapnil Ingle , Danil Kipnis , Jack Wang , Roman Pen Subject: [PATCH v2 14/26] ibtrs: include client and server modules into kernel compilation Date: Fri, 18 May 2018 15:04:01 +0200 Message-Id: <20180518130413.16997-15-roman.penyaev@profitbricks.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20180518130413.16997-1-roman.penyaev@profitbricks.com> References: <20180518130413.16997-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 | 15 +++++++++++++++ 4 files changed, 37 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 ee270e065ba9..787bd286fb08 100644 --- a/drivers/infiniband/Kconfig +++ b/drivers/infiniband/Kconfig @@ -94,6 +94,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..e6ea858745ad --- /dev/null +++ b/drivers/infiniband/ulp/ibtrs/Makefile @@ -0,0 +1,15 @@ +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 + +-include $(src)/compat/compat.mk