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: 9642623 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 A3E156020B for ; Fri, 24 Mar 2017 10:48:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB30227F07 for ; Fri, 24 Mar 2017 10:48:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B047C2823D; Fri, 24 Mar 2017 10:48:08 +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 519F827F07 for ; Fri, 24 Mar 2017 10:48:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935652AbdCXKsH (ORCPT ); Fri, 24 Mar 2017 06:48:07 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:35099 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935730AbdCXKrw (ORCPT ); Fri, 24 Mar 2017 06:47:52 -0400 Received: by mail-wm0-f43.google.com with SMTP id u132so9706868wmg.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=hNV2Oi1niTCurCSAz9lMQYWvDwgI+6HLXxXvtaJn0Zu+H6Jt5SSTgf12KP6y64frAc byC6NZG42kM9w27FgCNbX1p3hg0INXnAPJwvSVZ5XkyglYbtgMHWIflyPWXDGX1Nxc+B 14vADRqQWAF5TZ4pUgFNyDnXd0hwr1XQ8KsVWeJzatQCodjnWJwPNdHkMG7GuQjLNxTF 72efLbO9pX3NIiAbTsUU++Bqb52BcXHNTwXJUsWqOeuZLHIAbh9qEmwk/qQDSIE9FGSM lf7ceByHxESWLjAnM0teAwHg+p/23gHngn4Zg+9t9O+a6QwXOCMlyaRjt9CwZhISKcli wKqQ== X-Gm-Message-State: AFeK/H2bTU72VE3glGGfSEXrxcLWDT83BpEOtslsQwcR3F0vyyw/V/CWteiQz8eUHnYUDHtT 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-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 | 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