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: 9642663 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 156B76020B for ; Fri, 24 Mar 2017 10:48:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B9AB26E81 for ; Fri, 24 Mar 2017 10:48:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 20AEC2823D; Fri, 24 Mar 2017 10:48:26 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 98E562823E for ; Fri, 24 Mar 2017 10:48:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752828AbdCXKsY (ORCPT ); Fri, 24 Mar 2017 06:48:24 -0400 Received: from mail-wr0-f170.google.com ([209.85.128.170]:36135 "EHLO mail-wr0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935715AbdCXKsC (ORCPT ); Fri, 24 Mar 2017 06:48:02 -0400 Received: by mail-wr0-f170.google.com with SMTP id u108so6741374wrb.3 for ; Fri, 24 Mar 2017 03:48:01 -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=ozU/lB2s0N70lOtcfq66wNubTmVclQ/2Pcm83r7T27ODq0EUlIA/yMZ02imR7+joWZ 0iF+fO2StrL8kpWmLdKTfCzNRvjvLnKJI2McMD5oNA04zug3cC5ZTV1rS+mbzrXWR98d kEQsNenECbeAmxwQ2ctdQqCU3Dy64xJb/OkhIrSMMNuhJZPcLWIb9URYa9UJich/ucke N+dXBIFeuwy2MjuNE1x2fm3KW4EgtihcyVLvuvSXZhFdCy9aIuWHITztUX1RrqncerQH /FlNPNE7AATQXg+h44p2TS36idvCSsmHSv5Ipk6odSShSw4Sz9dFFZNG4eRf22FbruBM /wcA== X-Gm-Message-State: AFeK/H20/mef5NVZNjkGUtm1VdL1Br+e9363p9M/yYj8stIykLQBGIz6m4OUNdCLlQgSv+e1 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-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@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