From patchwork Fri May 18 13:04:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Pen X-Patchwork-Id: 10410645 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 A1F9F60535 for ; Fri, 18 May 2018 13:06:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9265F28984 for ; Fri, 18 May 2018 13:06:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86F3B28987; Fri, 18 May 2018 13:06:56 +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 9C1F428984 for ; Fri, 18 May 2018 13:06:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751565AbeERNGw (ORCPT ); Fri, 18 May 2018 09:06:52 -0400 Received: from mail-wr0-f176.google.com ([209.85.128.176]:36583 "EHLO mail-wr0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752665AbeERNF4 (ORCPT ); Fri, 18 May 2018 09:05:56 -0400 Received: by mail-wr0-f176.google.com with SMTP id p4-v6so9155787wrh.3 for ; Fri, 18 May 2018 06:05:56 -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=GFa4TZ+SZch5SxCLl8dkrrdoSKI7AUidvheIKYg2Gy0=; b=i7h2CSfd77liD/hrTRLCX88lgxHcVzrBDCcBk4dwMnkFyFmAqR3dQ9D4NAxot+6GEk 8gR7exL7uAIeJN1shsDwb4s6srgWgJ9KZ+JqZyuMvOXTMabCNFc99TmKItni53UjrdcS 10/NZWH/Vt5OIfwuzW+U9cwa+ob5OpRggUDAJDZeGkkGvNYegrlbeU9R9BMGW1mojJi5 iGLuAO3LwDh9lMh1o460BkXjAsbt6c/b/2+IhpfvZkTnmtSUmT1qDdYF0BkJ548XXNOy XGO40GdZC1rL/SZaqZ54FfJ1mmSdzzHiB7Di7LsERgNDeRExyrYBKUOeU17ZewcmO5rd XB9g== 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=GFa4TZ+SZch5SxCLl8dkrrdoSKI7AUidvheIKYg2Gy0=; b=DO3IlC7Hn0XxLywP49HxpUICWzA1kDPHdM6VrObLaHl6zWBKqwxq8JjoafVTyUskQo S42ldcPkNFRcPLfuadq1dzxv1JbN/xTx30Id8tt3r8916v7p62RGh7nQ63sz4pECCUuw ZNt5gq8XVzrEsxm1wTX7JvnuYuu83X8THxDuNtVvfmhddNDKwkxifQuAtzudVoS9uJh4 QAF1IEAVB+r+HxmzDtAgUmrRD41bhEr1IMusgyCLnXJRvz2eAyCdCRnu5n+KO1ANCyDP tGXMLKiXCS+mzxB53yMK7APFD26kv/obO1CHSmhGcwLIQ55+yTtorMMApNwH790mhFI+ Acvg== X-Gm-Message-State: ALKqPwd9bI1RjbjR5ojM6Zg0nSFz1r573Lwjm9Tsc+X83iLZgCqpE4pI VXTLUGCTxOG217OACYaj6wupSCzB X-Google-Smtp-Source: AB8JxZpeWN2IGGCpAqTulfnjiyRMeOAQfkvkfZdeP0e5gUHVjEpEczGXlsMFLAECPbLQJW9HajuX8A== X-Received: by 2002:adf:93e5:: with SMTP id 92-v6mr7728416wrp.230.1526648755055; Fri, 18 May 2018 06:05:55 -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.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 06:05:54 -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 24/26] ibnbd: include client and server modules into kernel compilation Date: Fri, 18 May 2018 15:04:11 +0200 Message-Id: <20180518130413.16997-25-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 IBNBD Makefile, Kconfig and also corresponding lines into upper block layer files. Signed-off-by: Roman Pen Signed-off-by: Danil Kipnis Cc: Jack Wang --- drivers/block/Kconfig | 2 ++ drivers/block/Makefile | 1 + drivers/block/ibnbd/Kconfig | 22 ++++++++++++++++++++++ drivers/block/ibnbd/Makefile | 13 +++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 drivers/block/ibnbd/Kconfig create mode 100644 drivers/block/ibnbd/Makefile diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index ad9b687a236a..d8c1590411c8 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig @@ -481,4 +481,6 @@ config BLK_DEV_RSXX To compile this driver as a module, choose M here: the module will be called rsxx. +source "drivers/block/ibnbd/Kconfig" + endif # BLK_DEV diff --git a/drivers/block/Makefile b/drivers/block/Makefile index dc061158b403..65346a1d0b1a 100644 --- a/drivers/block/Makefile +++ b/drivers/block/Makefile @@ -38,6 +38,7 @@ obj-$(CONFIG_BLK_DEV_PCIESSD_MTIP32XX) += mtip32xx/ obj-$(CONFIG_BLK_DEV_RSXX) += rsxx/ obj-$(CONFIG_BLK_DEV_NULL_BLK) += null_blk.o obj-$(CONFIG_ZRAM) += zram/ +obj-$(CONFIG_BLK_DEV_IBNBD) += ibnbd/ skd-y := skd_main.o swim_mod-y := swim.o swim_asm.o diff --git a/drivers/block/ibnbd/Kconfig b/drivers/block/ibnbd/Kconfig new file mode 100644 index 000000000000..b381c6c084d2 --- /dev/null +++ b/drivers/block/ibnbd/Kconfig @@ -0,0 +1,22 @@ +config BLK_DEV_IBNBD + bool + +config BLK_DEV_IBNBD_CLIENT + tristate "Network block device driver on top of IBTRS transport" + depends on INFINIBAND_IBTRS_CLIENT + select BLK_DEV_IBNBD + help + IBNBD client allows for mapping of a remote block devices over + IBTRS protocol from a target system where IBNBD server is running. + + If unsure, say N. + +config BLK_DEV_IBNBD_SERVER + tristate "Network block device over RDMA Infiniband server support" + depends on INFINIBAND_IBTRS_SERVER + select BLK_DEV_IBNBD + help + IBNBD server allows for exporting local block devices to a remote client + over IBTRS protocol. + + If unsure, say N. diff --git a/drivers/block/ibnbd/Makefile b/drivers/block/ibnbd/Makefile new file mode 100644 index 000000000000..5f20e72e0633 --- /dev/null +++ b/drivers/block/ibnbd/Makefile @@ -0,0 +1,13 @@ +ccflags-y := -Idrivers/infiniband/ulp/ibtrs + +ibnbd-client-y := ibnbd-clt.o \ + ibnbd-clt-sysfs.o + +ibnbd-server-y := ibnbd-srv.o \ + ibnbd-srv-dev.o \ + ibnbd-srv-sysfs.o + +obj-$(CONFIG_BLK_DEV_IBNBD_CLIENT) += ibnbd-client.o +obj-$(CONFIG_BLK_DEV_IBNBD_SERVER) += ibnbd-server.o + +-include $(src)/compat/compat.mk