From patchwork Fri Mar 24 10:45:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinpu Wang X-Patchwork-Id: 9642645 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 A46F16020B for ; Fri, 24 Mar 2017 10:48:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA76426E81 for ; Fri, 24 Mar 2017 10:48:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF32128236; Fri, 24 Mar 2017 10:48:17 +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=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 56E6926E81 for ; Fri, 24 Mar 2017 10:48:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756955AbdCXKsQ (ORCPT ); Fri, 24 Mar 2017 06:48:16 -0400 Received: from mail-wr0-f173.google.com ([209.85.128.173]:36135 "EHLO mail-wr0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935678AbdCXKr6 (ORCPT ); Fri, 24 Mar 2017 06:47:58 -0400 Received: by mail-wr0-f173.google.com with SMTP id u108so6741378wrb.3 for ; Fri, 24 Mar 2017 03:47: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=jBFVKTAmTMYQetIhWyrkdBdVEVYnwzxh97Nn9fHFGvs=; b=DDgBix76dAbhp9TsjQOSCCwtHhjZGHCpQgYC+RL0mgmE+Sh5w2jK5+1Dtp+7Jf0sS3 ltSWbKgnDSDSkE6cHeMEA+ZT/zZbY74cUssqfVxQELDEJ0sTBH1VyLjfO+A50bn/zO/I C+0KuP2X+/ktb2hP6Dm1uqF8nB8LbE4QMW1jcmA9GChu/S7lzrBvRb7Olayn1QTgEB7j 7GsT5UQBywqUzGFzLK1cZ2Tw/xBMMbA+oroOO4ta5UulZntKX/NvIPl54JoFyYMkX7B5 /sQS/DEUurdsXPJK83mov8Ux/ewy+KB9NNypIc3UbI9E8r13j8rREfaCsnxPgrau77Br XxSg== 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=jBFVKTAmTMYQetIhWyrkdBdVEVYnwzxh97Nn9fHFGvs=; b=AwjJ3iTB00Q/cWePYn6SLAI8enrxx7HAMdpkzbD9iUXXUSc+umh+qrlEZkrnJ0khGc wPc/cZqjJITiawEI+Ph4g3Bi2cXM30ybpbELZL7E8h27pxWn2/9bvusZKnvGU3FRPOyk su0bNe6ZDVv5rnH0yiC4suDINzpGMC8PaBztlsyS9LETBdblwXcFutB9BKecvu3EchrF AZtaPNWeDDE1tWIMsHb0SMuzWGfWfdgkiXIXAHjUoCyrfSc9AlUCFL+oqKISIzc/ShPx +CT0FfVGO4YjF9ibkU5BQy5BRWHNMengHmPmGRDS182/IdUyX/A+RvjHEo4MtenZcnGJ JZJQ== X-Gm-Message-State: AFeK/H3cBwgFyxnsomK5b/r5TMINSPF4l6wMIlZnOzVWTyuoLsThEq4H8z6SBY+4LOKzZYyv X-Received: by 10.223.156.2 with SMTP id f2mr6886786wrc.176.1490352475829; Fri, 24 Mar 2017 03:47:55 -0700 (PDT) Received: from jinpu-GA-870A-USB3.pb.local ([62.217.45.26]) by smtp.gmail.com with ESMTPSA id s17sm2404458wrc.25.2017.03.24.03.47.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Mar 2017 03:47:55 -0700 (PDT) From: Jack Wang X-Google-Original-From: Jack Wang To: linux-block@vger.kernel.org, linux-rdma@vger.kernel.org Cc: dledford@redhat.com, axboe@kernel.dk, hch@lst.de, mail@fholler.de, Milind.dumbare@gmail.com, yun.wang@profitbricks.com, Jack Wang Subject: [PATCH 26/28] ibnbd_srv: add Makefile and Kconfig Date: Fri, 24 Mar 2017 11:45:41 +0100 Message-Id: <1490352343-20075-27-git-send-email-jinpu.wangl@profitbricks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1490352343-20075-1-git-send-email-jinpu.wangl@profitbricks.com> References: <1490352343-20075-1-git-send-email-jinpu.wangl@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 From: Jack Wang Signed-off-by: Jack Wang --- drivers/block/Kconfig | 1 + drivers/block/Makefile | 1 + drivers/block/ibnbd_server/Kconfig | 16 ++++++++++++++++ drivers/block/ibnbd_server/Makefile | 3 +++ 4 files changed, 21 insertions(+) create mode 100644 drivers/block/ibnbd_server/Kconfig create mode 100644 drivers/block/ibnbd_server/Makefile diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index c309e57..e4823c4 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig @@ -276,6 +276,7 @@ config BLK_DEV_CRYPTOLOOP source "drivers/block/drbd/Kconfig" source "drivers/block/ibnbd_client/Kconfig" +source "drivers/block/ibnbd_server/Kconfig" config BLK_DEV_NBD tristate "Network block device support" diff --git a/drivers/block/Makefile b/drivers/block/Makefile index 7da1813..cd20888 100644 --- a/drivers/block/Makefile +++ b/drivers/block/Makefile @@ -35,6 +35,7 @@ obj-$(CONFIG_BLK_DEV_HD) += hd.o obj-$(CONFIG_XEN_BLKDEV_FRONTEND) += xen-blkfront.o obj-$(CONFIG_XEN_BLKDEV_BACKEND) += xen-blkback/ obj-$(CONFIG_BLK_DEV_IBNBD_CLT) += ibnbd_client/ +obj-$(CONFIG_BLK_DEV_IBNBD_SRV) += ibnbd_server/ obj-$(CONFIG_BLK_DEV_DRBD) += drbd/ obj-$(CONFIG_BLK_DEV_RBD) += rbd.o obj-$(CONFIG_BLK_DEV_PCIESSD_MTIP32XX) += mtip32xx/ diff --git a/drivers/block/ibnbd_server/Kconfig b/drivers/block/ibnbd_server/Kconfig new file mode 100644 index 0000000..943e1b2 --- /dev/null +++ b/drivers/block/ibnbd_server/Kconfig @@ -0,0 +1,16 @@ +config BLK_DEV_IBNBD_SRV + tristate "Network block device over Infiniband server support" + depends on INFINIBAND_IBTRS_SRV + ---help--- + Saying Y here will allow your computer to be a server for network + block devices over Infiniband, i.e. it will be able to use block + devices exported by servers (mount file systems on them etc.). + Communication between client and server works over Infiniband + networking, but to the client program this is hidden: + it looks like a regular local file access to a block device + special file such as /dev/ibnbd0. + + To compile this driver as a module, choose M here: the + module will be called ibnbd_client. + + If unsure, say N. diff --git a/drivers/block/ibnbd_server/Makefile b/drivers/block/ibnbd_server/Makefile new file mode 100644 index 0000000..e66860f --- /dev/null +++ b/drivers/block/ibnbd_server/Makefile @@ -0,0 +1,3 @@ +obj-$(CONFIG_BLK_DEV_IBNBD_SRV) += ibnbd_server.o +ibnbd_server-objs := ibnbd_srv.o ibnbd_srv_sysfs.o ibnbd_dev.o \ + ../ibnbd_lib/ibnbd.o ../ibnbd_lib/ibnbd-proto.o