From patchwork Mon Apr 27 14:10:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danil Kipnis X-Patchwork-Id: 11512287 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 262F815E6 for ; Mon, 27 Apr 2020 14:11:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0F0A820735 for ; Mon, 27 Apr 2020 14:11:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=cloud.ionos.com header.i=@cloud.ionos.com header.b="ILlKwOUY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727992AbgD0OLm (ORCPT ); Mon, 27 Apr 2020 10:11:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727985AbgD0OLm (ORCPT ); Mon, 27 Apr 2020 10:11:42 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D053EC0610D5 for ; Mon, 27 Apr 2020 07:11:41 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id i10so20721960wrv.10 for ; Mon, 27 Apr 2020 07:11:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloud.ionos.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BuJOZVsEd9h9dD9WNCH05BihJUfcD+XqHViZvcPGzLM=; b=ILlKwOUY/SRHzaYXb/xFBLv/PhsD8h5HXe+f1AhiUEku9izjlWs9zpzQ0fXWnYYSTI 7DVbfkKQP/rwfa4bdiLAdhKm38jCuc6pgUHfeSvHWYgkbVum07iZocQgMuj/HGI1fLb1 SG7W9pdGFzOPLburVa5n23q0DKpd11C0fV7r4sWB8nUX9NVQeGoCRfr+pPjXio8Mg6eg 6/rF/E4BjAWYnWnAWlT5/tIXWV7W/I7jmC7bRhi36BvmfLXqyYvgjoqcAGtpLdiOB0nR vDj0oGXd4TXg7NaMA2fgTxgsAAp/bDcrk1JQhWZM91ZFlSPfly1iKjXWoApwEhXm6IPW In8A== 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:mime-version:content-transfer-encoding; bh=BuJOZVsEd9h9dD9WNCH05BihJUfcD+XqHViZvcPGzLM=; b=o8WvzFY+q3jI3BSUO297FM+oWXgf3ljvj1KrDUzEgvB5z6uD6JitmulP9ZlK8o4B06 6ywSAsuUgkdFYlGyFXHq1+ryKRe06DgZgC2qg5ldTl6S+edfO403IUqnuHu6x5I8FaoR JOufXgZGqOBSQK8+fF9s1gvTYic7lYqh7mdGc/UkCck8+piIhLS6wbHxdCQGIgeeylnD 0hZn3wjJ9uhdJ6rVZnM/VWiY1kMlH2lhZQrXtW+B/1CD7euEX1D0t+HhBamZjJvdn+zO DZVLC6nzgglYBP00YpN/N2n3CPMxaQbyLls9MVJV1Y7HYHNDQJBIZu7gVykBAbzTRp4L JmOg== X-Gm-Message-State: AGi0PuaTxoIvcr3IWR3G4gosb7A3WGFs7w2EXp5jiMtX8NTz5n/uQMEU +1Dx5SYqsVygRixHVnvSfY22 X-Google-Smtp-Source: APiQypJjAOtJm6tX513lSPpy/LeypI3m+dRO4Lh284HWqeB4xZ7q3gMq5b/Z4Llpl2oE1Eb/pLjjsQ== X-Received: by 2002:adf:d087:: with SMTP id y7mr27396420wrh.321.1587996700569; Mon, 27 Apr 2020 07:11:40 -0700 (PDT) Received: from dkxps.fkb.profitbricks.net (dslb-002-204-227-207.002.204.pools.vodafone-ip.de. [2.204.227.207]) by smtp.gmail.com with ESMTPSA id o3sm21499756wru.68.2020.04.27.07.11.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Apr 2020 07:11:40 -0700 (PDT) From: Danil Kipnis To: linux-block@vger.kernel.org, linux-rdma@vger.kernel.org Cc: axboe@kernel.dk, hch@infradead.org, sagi@grimberg.me, bvanassche@acm.org, leon@kernel.org, dledford@redhat.com, jgg@ziepe.ca, danil.kipnis@cloud.ionos.com, jinpu.wang@cloud.ionos.com, pankaj.gupta@cloud.ionos.com Subject: [PATCH v13 23/25] block/rnbd: include client and server modules into kernel compilation Date: Mon, 27 Apr 2020 16:10:18 +0200 Message-Id: <20200427141020.655-24-danil.kipnis@cloud.ionos.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200427141020.655-1-danil.kipnis@cloud.ionos.com> References: <20200427141020.655-1-danil.kipnis@cloud.ionos.com> MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Jack Wang Add rnbd Makefile, Kconfig and also corresponding lines into upper block layer files. Signed-off-by: Danil Kipnis Signed-off-by: Jack Wang Reviewed-by: Bart Van Assche Reported-by: kbuild test robot --- drivers/block/Kconfig | 2 ++ drivers/block/Makefile | 1 + drivers/block/rnbd/Kconfig | 28 ++++++++++++++++++++++++++++ drivers/block/rnbd/Makefile | 15 +++++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 drivers/block/rnbd/Kconfig create mode 100644 drivers/block/rnbd/Makefile diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index 025b1b77b11a..084b9efcefca 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig @@ -458,4 +458,6 @@ config BLK_DEV_RSXX To compile this driver as a module, choose M here: the module will be called rsxx. +source "drivers/block/rnbd/Kconfig" + endif # BLK_DEV diff --git a/drivers/block/Makefile b/drivers/block/Makefile index 795facd8cf19..e1f63117ee94 100644 --- a/drivers/block/Makefile +++ b/drivers/block/Makefile @@ -39,6 +39,7 @@ obj-$(CONFIG_BLK_DEV_PCIESSD_MTIP32XX) += mtip32xx/ obj-$(CONFIG_BLK_DEV_RSXX) += rsxx/ obj-$(CONFIG_ZRAM) += zram/ +obj-$(CONFIG_BLK_DEV_RNBD) += rnbd/ obj-$(CONFIG_BLK_DEV_NULL_BLK) += null_blk.o null_blk-objs := null_blk_main.o diff --git a/drivers/block/rnbd/Kconfig b/drivers/block/rnbd/Kconfig new file mode 100644 index 000000000000..4b6d3d816d1f --- /dev/null +++ b/drivers/block/rnbd/Kconfig @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +config BLK_DEV_RNBD + bool + +config BLK_DEV_RNBD_CLIENT + tristate "RDMA Network Block Device driver client" + depends on INFINIBAND_RTRS_CLIENT + select BLK_DEV_RNBD + help + RNBD client is a network block device driver using rdma transport. + + RNBD client allows for mapping of a remote block devices over + RTRS protocol from a target system where RNBD server is running. + + If unsure, say N. + +config BLK_DEV_RNBD_SERVER + tristate "RDMA Network Block Device driver server" + depends on INFINIBAND_RTRS_SERVER + select BLK_DEV_RNBD + help + RNBD server is the server side of RNBD using rdma transport. + + RNBD server allows for exporting local block devices to a remote client + over RTRS protocol. + + If unsure, say N. diff --git a/drivers/block/rnbd/Makefile b/drivers/block/rnbd/Makefile new file mode 100644 index 000000000000..450a9e4974d7 --- /dev/null +++ b/drivers/block/rnbd/Makefile @@ -0,0 +1,15 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +ccflags-y := -Idrivers/infiniband/ulp/rtrs + +rnbd-client-y := rnbd-clt.o \ + rnbd-common.o \ + rnbd-clt-sysfs.o + +rnbd-server-y := rnbd-srv.o \ + rnbd-common.o \ + rnbd-srv-dev.o \ + rnbd-srv-sysfs.o + +obj-$(CONFIG_BLK_DEV_RNBD_CLIENT) += rnbd-client.o +obj-$(CONFIG_BLK_DEV_RNBD_SERVER) += rnbd-server.o