From patchwork Fri Mar 24 10:45:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinpu Wang X-Patchwork-Id: 9642627 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 A84016020B for ; Fri, 24 Mar 2017 10:48:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF50726E81 for ; Fri, 24 Mar 2017 10:48:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B445B28236; Fri, 24 Mar 2017 10:48:09 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 6687C26E81 for ; Fri, 24 Mar 2017 10:48:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935714AbdCXKsH (ORCPT ); Fri, 24 Mar 2017 06:48:07 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:35098 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935667AbdCXKrw (ORCPT ); Fri, 24 Mar 2017 06:47:52 -0400 Received: by mail-wm0-f54.google.com with SMTP id u132so9706862wmg.0 for ; Fri, 24 Mar 2017 03:47:50 -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=I5+/SJSaxkyBpaZIYFV70cG697JKFk6PjC7MNwySCoM=; b=E6SqzalAeXJ/yFQ9pfAoT++qpZf1njzKFwqhJywqqSWJzJi/ZQ6I1c3MKSYJnopkaZ HExWmjEhhDjQ8iIqgkSs5JT/ZUBwEd7Eyq1yfq3F3ub+mKvIYYXmb058Bzmw0s55x2Od If0ce8JG7f19069DIhL31xhq7q/Lwr0VOp0wu8p/vl002TuXbDRQUyLCN7zt07rssnPI nMBxTcIwhPgDEinu/hMZbBpY1gfSf/vskxvqV8t5e6feOsasZ/Q2vO3wXhtBV7LJaXFl I4ndJiDoYl3CbPsc0By38uqGjr5wYyrSE+gaJgvV9w3pWDeqHJnDwTdRfw7A2D4jcMXw VYzQ== 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=I5+/SJSaxkyBpaZIYFV70cG697JKFk6PjC7MNwySCoM=; b=JUIoF3JMHsczjvDoRQNh4zLBturkP+KaPQapDBVbM+dXWGwZtK0TkX1i1kWw/3XJs9 BSpmW0l/IfjicYoNwFZXSueoNMmVbagHSSbVVQRLpDRMzfxApeF18Q2nwSMdKsAkQCi7 mFOgxWcQg8Bds2hvowBAClRVCYi/s3xnYRI40QieMgyV7+xoFJgy89CHPcvKeJu66nDR bcq1aFWHeyxy+vG4myagRn0mNUSrtmwdDZlexjPfxkoiAqhzuERJRUIeHnBKas/Jp6Jz 3U9fpSAWRDHyQhs01j1oFoHAP2fDGzVHhJeKsumcaS22MvCOGFLY/9gPH5mPYpqEo6Zu MYmA== X-Gm-Message-State: AFeK/H1TfrGM0DYyD9myj4I7FWGWAUJjt0ns+XpjfSE3Dijlp3IavaVe/Ld1Op6XmMA5lysU X-Received: by 10.28.212.79 with SMTP id l76mr2238892wmg.6.1490352470010; Fri, 24 Mar 2017 03:47:50 -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.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Mar 2017 03:47:49 -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 20/28] ibnbd_clt: add Makefile and Kconfig Date: Fri, 24 Mar 2017 11:45:35 +0100 Message-Id: <1490352343-20075-21-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 | 2 ++ drivers/block/Makefile | 1 + drivers/block/ibnbd_client/Kconfig | 16 ++++++++++++++++ drivers/block/ibnbd_client/Makefile | 5 +++++ 4 files changed, 24 insertions(+) create mode 100644 drivers/block/ibnbd_client/Kconfig create mode 100644 drivers/block/ibnbd_client/Makefile diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index f744de7..c309e57 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig @@ -275,6 +275,8 @@ config BLK_DEV_CRYPTOLOOP source "drivers/block/drbd/Kconfig" +source "drivers/block/ibnbd_client/Kconfig" + config BLK_DEV_NBD tristate "Network block device support" depends on NET diff --git a/drivers/block/Makefile b/drivers/block/Makefile index 1e9661e..7da1813 100644 --- a/drivers/block/Makefile +++ b/drivers/block/Makefile @@ -34,6 +34,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_DRBD) += drbd/ obj-$(CONFIG_BLK_DEV_RBD) += rbd.o obj-$(CONFIG_BLK_DEV_PCIESSD_MTIP32XX) += mtip32xx/ diff --git a/drivers/block/ibnbd_client/Kconfig b/drivers/block/ibnbd_client/Kconfig new file mode 100644 index 0000000..162e4e1 --- /dev/null +++ b/drivers/block/ibnbd_client/Kconfig @@ -0,0 +1,16 @@ +config BLK_DEV_IBNBD_CLT + tristate "Network block device over Infiniband client support" + depends on INFINIBAND_IBTRS_CLT + ---help--- + Saying Y here will allow your computer to be a client 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_client/Makefile b/drivers/block/ibnbd_client/Makefile new file mode 100644 index 0000000..bbf211f --- /dev/null +++ b/drivers/block/ibnbd_client/Makefile @@ -0,0 +1,5 @@ + +obj-$(CONFIG_BLK_DEV_IBNBD_CLT) += ibnbd_client.o + +ibnbd_client-y := ibnbd_clt.o ibnbd_clt_sysfs.o ../ibnbd_lib/ibnbd.o \ + ../ibnbd_lib/ibnbd-proto.o