From patchwork Wed Jun 6 15:25:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Pen X-Patchwork-Id: 10450499 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 B09146054E for ; Wed, 6 Jun 2018 15:26:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A076D2978D for ; Wed, 6 Jun 2018 15:26:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 954F129776; Wed, 6 Jun 2018 15:26:24 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI, 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 D512A2979F for ; Wed, 6 Jun 2018 15:26:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752659AbeFFP0S (ORCPT ); Wed, 6 Jun 2018 11:26:18 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:38227 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752423AbeFFPZ6 (ORCPT ); Wed, 6 Jun 2018 11:25:58 -0400 Received: by mail-wr0-f194.google.com with SMTP id 94-v6so6744373wrf.5 for ; Wed, 06 Jun 2018 08:25:58 -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=BAy2JNZyBKRYdAENsG9wP9ZQs0Hr4Y9qCjp9Q+8WBI8=; b=KxC4XaGqWQZlYbpUPxB9ciw7hon0JojJC5lR/2n4jiHEZpynI+ruoAoMxe+kttXJFE fNqoEQO2hp/as+sSgkTdMAPI2saQDgBE13mqlBVKNIrnHdt/sSIKuZoGXpmLSjXCUMfR ndZ7bfwym0wyjBT6fj3opoDd0FOoi435p4e9Zxlu1buRs9uNpaNuxp0OXvp8wziMHdLn l8khFWeVyybpfR2v50x7kVJz9CcR17DkPKDGb1XaIaOFn5D0W0xD88MM2A1rFMFeyQa3 MdsQaCZlUVfXpRxlFHv7CZN/nVMk2Iy2YA6/hV7MwucJeQjazn5VMAvYhx3et7wL/hgl zoHw== 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=BAy2JNZyBKRYdAENsG9wP9ZQs0Hr4Y9qCjp9Q+8WBI8=; b=mc0Z0de+iZ6kY+aSUULElYXOcYFzLoAN40huIqGTl6pDlmsYlzs9ZbJl03qfrJg8xG U3CnbyyaFHBr/0B+KTQezJft6WruRe9WDSSjk1PcxfME0Zb4VGVJU5aSSAMtYGUuRp5a LTOGaYS3aQ85LC+0oBixQet9aeE3pY41BRVhhhW1xWDtwS5TftD/dkfFSZkPoEy3h/r2 K74ybbmEwDv92hiLFuCdsiEAh9U+ZB1UbTKlOxBcus8znUF0kv/LO7Uv1+g65o5UK0qG IHV9xsAGPyhULTG0pPpld6NBjbicgF+daOTvgkqSE3R/2HTwrm9xdXhUPd6M3/EpEFKJ zMKg== X-Gm-Message-State: APt69E3yEXqopPNzFvMrTEzlDjlrAThyXQdCQoYjkM+78wbLXiEwp0RI 8yPUkaMGcsdNhRYlObRMnmvLjecJrwM= X-Google-Smtp-Source: ADUXVKKjG8BzZnaF0yajXz+s63miadggWyB87Fv3VHAc1kHd1cGOcrnjhtIuJ41fyMNlCKTNcD5EfQ== X-Received: by 2002:adf:b94e:: with SMTP id b14-v6mr2896130wrg.265.1528298757187; Wed, 06 Jun 2018 08:25:57 -0700 (PDT) Received: from pb.pb.local ([62.217.45.26]) by smtp.gmail.com with ESMTPSA id n11-v6sm18645834wro.13.2018.06.06.08.25.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jun 2018 08:25:56 -0700 (PDT) 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 , Doug Ledford , Danil Kipnis , Jack Wang , Roman Pen Subject: [PATCH v3 23/25] ibnbd: include client and server modules into kernel compilation Date: Wed, 6 Jun 2018 17:25:13 +0200 Message-Id: <20180606152515.25807-24-roman.penyaev@profitbricks.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20180606152515.25807-1-roman.penyaev@profitbricks.com> References: <20180606152515.25807-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 | 11 +++++++++++ 4 files changed, 36 insertions(+) create mode 100644 drivers/block/ibnbd/Kconfig create mode 100644 drivers/block/ibnbd/Makefile diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index ad9b687a236a..d8c1590411c8 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig @@ -481,4 +481,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..b381c6c084d2 --- /dev/null +++ b/drivers/block/ibnbd/Kconfig @@ -0,0 +1,22 @@ +config BLK_DEV_IBNBD + bool + +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..ac906036310e --- /dev/null +++ b/drivers/block/ibnbd/Makefile @@ -0,0 +1,11 @@ +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