@@ -477,4 +477,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
@@ -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
new file mode 100644
@@ -0,0 +1,22 @@
+config BLK_DEV_IBNBD
+ boolean
+
+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.
new file mode 100644
@@ -0,0 +1,13 @@
+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
+
+-include $(src)/compat/compat.mk