Skip to content

Commit

Permalink
xprtrdma: add separate Kconfig options for NFSoRDMA client and server…
Browse files Browse the repository at this point in the history
… support

There are two entirely separate modules under xprtrdma/ and there's no
reason that enabling one should automatically enable the other. Add
config options for each one so they can be enabled/disabled separately.

Signed-off-by: Jeff Layton <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
  • Loading branch information
jtlayton authored and J. Bruce Fields committed Mar 28, 2014
1 parent 7e4359e commit 2e8c12e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 16 deletions.
39 changes: 26 additions & 13 deletions net/sunrpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,6 @@ config SUNRPC_BACKCHANNEL
bool
depends on SUNRPC

config SUNRPC_XPRT_RDMA
tristate
depends on SUNRPC && INFINIBAND && INFINIBAND_ADDR_TRANS
default SUNRPC && INFINIBAND
help
This option allows the NFS client and server to support
an RDMA-enabled transport.

To compile RPC client RDMA transport support as a module,
choose M here: the module will be called xprtrdma.

If unsure, say N.

config SUNRPC_SWAP
bool
depends on SUNRPC
Expand Down Expand Up @@ -57,3 +44,29 @@ config SUNRPC_DEBUG
but makes troubleshooting NFS issues significantly harder.

If unsure, say Y.

config SUNRPC_XPRT_RDMA_CLIENT
tristate "RPC over RDMA Client Support"
depends on SUNRPC && INFINIBAND && INFINIBAND_ADDR_TRANS
default SUNRPC && INFINIBAND
help
This option allows the NFS client to support an RDMA-enabled
transport.

To compile RPC client RDMA transport support as a module,
choose M here: the module will be called xprtrdma.

If unsure, say N.

config SUNRPC_XPRT_RDMA_SERVER
tristate "RPC over RDMA Server Support"
depends on SUNRPC && INFINIBAND && INFINIBAND_ADDR_TRANS
default SUNRPC && INFINIBAND
help
This option allows the NFS server to support an RDMA-enabled
transport.

To compile RPC server RDMA transport support as a module,
choose M here: the module will be called svcrdma.

If unsure, say N.
3 changes: 2 additions & 1 deletion net/sunrpc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

obj-$(CONFIG_SUNRPC) += sunrpc.o
obj-$(CONFIG_SUNRPC_GSS) += auth_gss/
obj-$(CONFIG_SUNRPC_XPRT_RDMA) += xprtrdma/

obj-y += xprtrdma/

sunrpc-y := clnt.o xprt.o socklib.o xprtsock.o sched.o \
auth.o auth_null.o auth_unix.o auth_generic.o \
Expand Down
4 changes: 2 additions & 2 deletions net/sunrpc/xprtrdma/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
obj-$(CONFIG_SUNRPC_XPRT_RDMA) += xprtrdma.o
obj-$(CONFIG_SUNRPC_XPRT_RDMA_CLIENT) += xprtrdma.o

xprtrdma-y := transport.o rpc_rdma.o verbs.o

obj-$(CONFIG_SUNRPC_XPRT_RDMA) += svcrdma.o
obj-$(CONFIG_SUNRPC_XPRT_RDMA_SERVER) += svcrdma.o

svcrdma-y := svc_rdma.o svc_rdma_transport.o \
svc_rdma_marshal.o svc_rdma_sendto.o svc_rdma_recvfrom.o

0 comments on commit 2e8c12e

Please sign in to comment.