From patchwork Fri Feb 2 14:09:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Pen X-Patchwork-Id: 10196873 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 8C3E66037D for ; Fri, 2 Feb 2018 14:11:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C62B28E61 for ; Fri, 2 Feb 2018 14:11:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 712CB28E68; Fri, 2 Feb 2018 14:11:38 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=unavailable 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 1CC3F28E61 for ; Fri, 2 Feb 2018 14:11:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752050AbeBBOLh (ORCPT ); Fri, 2 Feb 2018 09:11:37 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:51268 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752139AbeBBOLJ (ORCPT ); Fri, 2 Feb 2018 09:11:09 -0500 Received: by mail-wm0-f67.google.com with SMTP id r71so12976386wmd.1 for ; Fri, 02 Feb 2018 06:11:08 -0800 (PST) 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=LoBTV77uO5g60g5Yhardq1+etsd7I8smuy+auLS4N/c=; b=sSLU0oD5rKxKz2/MqYBh4ag3HIZSj2PXQBgwdp6/wkivqhEqZycv2U4muPYh4r1+Zk /jlPZerieTFtQiDRTL9DGtZMWFNlKPWnifKHj08G56EC1M4sLIrwdIXTdCb5ib9hTE8f hYB05s7Gp/A0eYY27fMMk0AY3Piybw2s+XueGXKC+IIVbKstw2oyAIESuBu5TRqooq0d qA7wntqj3sArndZLu9CO4bmHct7/ERZYWUXdCQ6+UTqOcjsbpl2nJ6faBrivmIWhc/17 5+U3BpTToWj9ygKWTFxxG1ZjQIuX3nnmd7mHO8qGs7E8ZEyiPAhKT6o9jCXPE290NPQS Zn0Q== 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=LoBTV77uO5g60g5Yhardq1+etsd7I8smuy+auLS4N/c=; b=RqR97QHVyh2i55sEn9DvQD8MRtGFjpA5hcEXJH9sXK3LPxw4EB60jmJam8dUQr7JNL au7L0uXN6dS3ExMC+SkVxePYVQbu5UmddHMo3O2O2wc1fiTwsme8GgGiLkujJI3on4Gq oWyvDIxnYmOQJ6LMvXkLaqkMVRN3gX94BdixVH69tsKQ0XClaWeGEjzBEXg5zkjgtvVZ BxwbRIq+iclKvmfq2dq4jNAuRgDEo233VCxJ09auhoh5P0agm3vUZluwtFe6L0zfRn9R FjM26QxU9MIJ8Hs8PTrFD1Gbkkdmedv827YwdM86nG145Myhg0ElXi/HnObMdrAwUjo6 6RsQ== X-Gm-Message-State: AKwxytdU2iVwKy8Zk2qB0TNuhIonAqiL0W5zmPPuLpAG0/RZAxRYlr6d Su5KaLf2vVMBJIrwb8l74mmTlu+m X-Google-Smtp-Source: AH8x225WOKdAJlsudZnlKP0uwLzH8K7bgH0ycUdcSqeqdF5d8CD7DgWQEFaebKCGPjY0iFjYFfw9nA== X-Received: by 10.28.183.5 with SMTP id h5mr30130200wmf.14.1517580667836; Fri, 02 Feb 2018 06:11:07 -0800 (PST) Received: from pb.pb.local ([62.217.45.26]) by smtp.gmail.com with ESMTPSA id v186sm798819wmf.17.2018.02.02.06.11.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Feb 2018 06:11:07 -0800 (PST) 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 , Roman Pen , Danil Kipnis , Jack Wang Subject: [PATCH 22/24] ibnbd: include client and server modules into kernel compilation Date: Fri, 2 Feb 2018 15:09:02 +0100 Message-Id: <20180202140904.2017-23-roman.penyaev@profitbricks.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20180202140904.2017-1-roman.penyaev@profitbricks.com> References: <20180202140904.2017-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(+) diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index 40579d0cb3d1..483aae5d391e 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig @@ -477,4 +477,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..c5cc7d111c7a --- /dev/null +++ b/drivers/block/ibnbd/Kconfig @@ -0,0 +1,22 @@ +config BLK_DEV_IBNBD + boolean + +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