linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@ziepe.ca>
To: Danil Kipnis <danil.kipnis@cloud.ionos.com>
Cc: linux-block@vger.kernel.org, linux-rdma@vger.kernel.org,
	axboe@kernel.dk, hch@infradead.org, sagi@grimberg.me,
	bvanassche@acm.org, leon@kernel.org, dledford@redhat.com,
	jinpu.wang@cloud.ionos.com, pankaj.gupta@cloud.ionos.com
Subject: Re: [PATCH v13 23/25] block/rnbd: include client and server modules into kernel compilation
Date: Wed, 29 Apr 2020 14:18:04 -0300	[thread overview]
Message-ID: <20200429171804.GE26002@ziepe.ca> (raw)
In-Reply-To: <20200427141020.655-24-danil.kipnis@cloud.ionos.com>

On Mon, Apr 27, 2020 at 04:10:18PM +0200, Danil Kipnis wrote:
> From: Jack Wang <jinpu.wang@cloud.ionos.com>
> 
> Add rnbd Makefile, Kconfig and also corresponding lines into upper
> block layer files.
> 
> Signed-off-by: Danil Kipnis <danil.kipnis@cloud.ionos.com>
> Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com>
> Reviewed-by: Bart Van Assche <bvanassche@acm.org>
>  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
> +++ 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
> +++ 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
> +++ 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
> +++ 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

keep lists of things sorted

Jason

  reply	other threads:[~2020-04-29 17:18 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-27 14:09 [PATCH v13 00/25] RTRS (former IBTRS) RDMA Transport Library and RNBD (former IBNBD) RDMA Network Block Device Danil Kipnis
2020-04-27 14:09 ` [PATCH v13 01/25] sysfs: export sysfs_remove_file_self() Danil Kipnis
2020-04-27 14:09 ` [PATCH v13 02/25] RDMA/rtrs: public interface header to establish RDMA connections Danil Kipnis
2020-04-27 14:09 ` [PATCH v13 03/25] RDMA/rtrs: private headers with rtrs protocol structs and helpers Danil Kipnis
2020-04-27 14:09 ` [PATCH v13 04/25] RDMA/rtrs: core: lib functions shared between client and server modules Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 05/25] RDMA/rtrs: client: private header with client structs and functions Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 06/25] RDMA/rtrs: client: main functionality Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 07/25] RDMA/rtrs: client: statistics functions Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 08/25] RDMA/rtrs: client: sysfs interface functions Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 09/25] RDMA/rtrs: server: private header with server structs and functions Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 10/25] RDMA/rtrs: server: main functionality Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 11/25] RDMA/rtrs: server: statistics functions Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 12/25] RDMA/rtrs: server: sysfs interface functions Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 13/25] RDMA/rtrs: include client and server modules into kernel compilation Danil Kipnis
2020-04-28 18:01   ` kbuild test robot
2020-04-30  6:15     ` Jinpu Wang
2020-04-27 14:10 ` [PATCH v13 14/25] RDMA/rtrs: a bit of documentation Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 15/25] block/rnbd: private headers with rnbd protocol structs and helpers Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 16/25] block/rnbd: client: private header with client structs and functions Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 17/25] block/rnbd: client: main functionality Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 18/25] block/rnbd: client: sysfs interface functions Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 19/25] block/rnbd: server: private header with server structs and functions Danil Kipnis
2020-04-29 17:20   ` Jason Gunthorpe
2020-04-30  6:43     ` Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 20/25] block/rnbd: server: main functionality Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 21/25] block/rnbd: server: functionality for IO submitting to block dev Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 22/25] block/rnbd: server: sysfs interface functions Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 23/25] block/rnbd: include client and server modules into kernel compilation Danil Kipnis
2020-04-29 17:18   ` Jason Gunthorpe [this message]
2020-04-30  7:07     ` Jinpu Wang
2020-04-30  7:42     ` Danil Kipnis
2020-04-30 11:52       ` Jason Gunthorpe
     [not found]   ` <202004292210.aw7c2Yi3%lkp@intel.com>
2020-04-30  8:48     ` Danil Kipnis
2020-05-01 14:24       ` Chen, Rong A
2020-05-04  7:52         ` Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 24/25] block/rnbd: a bit of documentation Danil Kipnis
2020-04-27 14:10 ` [PATCH v13 25/25] MAINTAINERS: Add maintainers for RNBD/RTRS modules Danil Kipnis
2020-04-29 17:18   ` Jason Gunthorpe
2020-04-30  5:48     ` Jinpu Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200429171804.GE26002@ziepe.ca \
    --to=jgg@ziepe.ca \
    --cc=axboe@kernel.dk \
    --cc=bvanassche@acm.org \
    --cc=danil.kipnis@cloud.ionos.com \
    --cc=dledford@redhat.com \
    --cc=hch@infradead.org \
    --cc=jinpu.wang@cloud.ionos.com \
    --cc=leon@kernel.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=pankaj.gupta@cloud.ionos.com \
    --cc=sagi@grimberg.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).