Skip to content

Commit

Permalink
RDMA/rtrs: include client and server modules into kernel compilation
Browse files Browse the repository at this point in the history
Add rtrs Makefile, Kconfig and also corresponding lines into upper layer
infiniband/ulp files.

Link: https://lore.kernel.org/r/20200511135131.27580-14-danil.kipnis@cloud.ionos.com
Signed-off-by: Danil Kipnis <danil.kipnis@cloud.ionos.com>
Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
  • Loading branch information
Jack Wang authored and Jason Gunthorpe committed May 17, 2020
1 parent 91b1161 commit c013fbc
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/infiniband/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ source "drivers/infiniband/ulp/srpt/Kconfig"

source "drivers/infiniband/ulp/iser/Kconfig"
source "drivers/infiniband/ulp/isert/Kconfig"
source "drivers/infiniband/ulp/rtrs/Kconfig"

source "drivers/infiniband/ulp/opa_vnic/Kconfig"

Expand Down
1 change: 1 addition & 0 deletions drivers/infiniband/ulp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ obj-$(CONFIG_INFINIBAND_SRPT) += srpt/
obj-$(CONFIG_INFINIBAND_ISER) += iser/
obj-$(CONFIG_INFINIBAND_ISERT) += isert/
obj-$(CONFIG_INFINIBAND_OPA_VNIC) += opa_vnic/
obj-$(CONFIG_INFINIBAND_RTRS) += rtrs/
27 changes: 27 additions & 0 deletions drivers/infiniband/ulp/rtrs/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# SPDX-License-Identifier: GPL-2.0-or-later

config INFINIBAND_RTRS
tristate
depends on INFINIBAND_ADDR_TRANS

config INFINIBAND_RTRS_CLIENT
tristate "RTRS client module"
depends on INFINIBAND_ADDR_TRANS
select INFINIBAND_RTRS
help
RDMA transport client module.

RDMA Transport (RTRS) client implements a reliable transport layer
and also multipathing functionality and that it is intended to be
the base layer for a block storage initiator over RDMA.

config INFINIBAND_RTRS_SERVER
tristate "RTRS server module"
depends on INFINIBAND_ADDR_TRANS
select INFINIBAND_RTRS
help
RDMA transport server module.

RDMA Transport (RTRS) server module processing connection and IO
requests received from the RTRS client module, it will pass the
IO requests to its user eg. RNBD_server.
15 changes: 15 additions & 0 deletions drivers/infiniband/ulp/rtrs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# SPDX-License-Identifier: GPL-2.0-or-later

rtrs-client-y := rtrs-clt.o \
rtrs-clt-stats.o \
rtrs-clt-sysfs.o

rtrs-server-y := rtrs-srv.o \
rtrs-srv-stats.o \
rtrs-srv-sysfs.o

rtrs-core-y := rtrs.o

obj-$(CONFIG_INFINIBAND_RTRS) += rtrs-core.o
obj-$(CONFIG_INFINIBAND_RTRS_CLIENT) += rtrs-client.o
obj-$(CONFIG_INFINIBAND_RTRS_SERVER) += rtrs-server.o

0 comments on commit c013fbc

Please sign in to comment.