diff options
author | Jeff Layton <jlayton@redhat.com> | 2014-03-18 19:45:47 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-03-28 18:02:12 -0400 |
commit | 2e8c12e1b76536d723ae0501de0729ddf6a9142c (patch) | |
tree | 285b9217cfbe8d504f965dd70991bce7f3265182 /net | |
parent | 7e4359e2611f95a97037e2b6905eab52f28afbeb (diff) |
xprtrdma: add separate Kconfig options for NFSoRDMA client and server 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 <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/Kconfig | 39 | ||||
-rw-r--r-- | net/sunrpc/Makefile | 3 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/Makefile | 4 |
3 files changed, 30 insertions, 16 deletions
diff --git a/net/sunrpc/Kconfig b/net/sunrpc/Kconfig index 241b54f30204..0754d0f466d2 100644 --- a/net/sunrpc/Kconfig +++ b/net/sunrpc/Kconfig | |||
@@ -9,19 +9,6 @@ config SUNRPC_BACKCHANNEL | |||
9 | bool | 9 | bool |
10 | depends on SUNRPC | 10 | depends on SUNRPC |
11 | 11 | ||
12 | config SUNRPC_XPRT_RDMA | ||
13 | tristate | ||
14 | depends on SUNRPC && INFINIBAND && INFINIBAND_ADDR_TRANS | ||
15 | default SUNRPC && INFINIBAND | ||
16 | help | ||
17 | This option allows the NFS client and server to support | ||
18 | an RDMA-enabled transport. | ||
19 | |||
20 | To compile RPC client RDMA transport support as a module, | ||
21 | choose M here: the module will be called xprtrdma. | ||
22 | |||
23 | If unsure, say N. | ||
24 | |||
25 | config SUNRPC_SWAP | 12 | config SUNRPC_SWAP |
26 | bool | 13 | bool |
27 | depends on SUNRPC | 14 | depends on SUNRPC |
@@ -57,3 +44,29 @@ config SUNRPC_DEBUG | |||
57 | but makes troubleshooting NFS issues significantly harder. | 44 | but makes troubleshooting NFS issues significantly harder. |
58 | 45 | ||
59 | If unsure, say Y. | 46 | If unsure, say Y. |
47 | |||
48 | config SUNRPC_XPRT_RDMA_CLIENT | ||
49 | tristate "RPC over RDMA Client Support" | ||
50 | depends on SUNRPC && INFINIBAND && INFINIBAND_ADDR_TRANS | ||
51 | default SUNRPC && INFINIBAND | ||
52 | help | ||
53 | This option allows the NFS client to support an RDMA-enabled | ||
54 | transport. | ||
55 | |||
56 | To compile RPC client RDMA transport support as a module, | ||
57 | choose M here: the module will be called xprtrdma. | ||
58 | |||
59 | If unsure, say N. | ||
60 | |||
61 | config SUNRPC_XPRT_RDMA_SERVER | ||
62 | tristate "RPC over RDMA Server Support" | ||
63 | depends on SUNRPC && INFINIBAND && INFINIBAND_ADDR_TRANS | ||
64 | default SUNRPC && INFINIBAND | ||
65 | help | ||
66 | This option allows the NFS server to support an RDMA-enabled | ||
67 | transport. | ||
68 | |||
69 | To compile RPC server RDMA transport support as a module, | ||
70 | choose M here: the module will be called svcrdma. | ||
71 | |||
72 | If unsure, say N. | ||
diff --git a/net/sunrpc/Makefile b/net/sunrpc/Makefile index 8209a0411bca..e5a7a1cac8f3 100644 --- a/net/sunrpc/Makefile +++ b/net/sunrpc/Makefile | |||
@@ -5,7 +5,8 @@ | |||
5 | 5 | ||
6 | obj-$(CONFIG_SUNRPC) += sunrpc.o | 6 | obj-$(CONFIG_SUNRPC) += sunrpc.o |
7 | obj-$(CONFIG_SUNRPC_GSS) += auth_gss/ | 7 | obj-$(CONFIG_SUNRPC_GSS) += auth_gss/ |
8 | obj-$(CONFIG_SUNRPC_XPRT_RDMA) += xprtrdma/ | 8 | |
9 | obj-y += xprtrdma/ | ||
9 | 10 | ||
10 | sunrpc-y := clnt.o xprt.o socklib.o xprtsock.o sched.o \ | 11 | sunrpc-y := clnt.o xprt.o socklib.o xprtsock.o sched.o \ |
11 | auth.o auth_null.o auth_unix.o auth_generic.o \ | 12 | auth.o auth_null.o auth_unix.o auth_generic.o \ |
diff --git a/net/sunrpc/xprtrdma/Makefile b/net/sunrpc/xprtrdma/Makefile index 5a8f268bdd30..da5136fd5694 100644 --- a/net/sunrpc/xprtrdma/Makefile +++ b/net/sunrpc/xprtrdma/Makefile | |||
@@ -1,8 +1,8 @@ | |||
1 | obj-$(CONFIG_SUNRPC_XPRT_RDMA) += xprtrdma.o | 1 | obj-$(CONFIG_SUNRPC_XPRT_RDMA_CLIENT) += xprtrdma.o |
2 | 2 | ||
3 | xprtrdma-y := transport.o rpc_rdma.o verbs.o | 3 | xprtrdma-y := transport.o rpc_rdma.o verbs.o |
4 | 4 | ||
5 | obj-$(CONFIG_SUNRPC_XPRT_RDMA) += svcrdma.o | 5 | obj-$(CONFIG_SUNRPC_XPRT_RDMA_SERVER) += svcrdma.o |
6 | 6 | ||
7 | svcrdma-y := svc_rdma.o svc_rdma_transport.o \ | 7 | svcrdma-y := svc_rdma.o svc_rdma_transport.o \ |
8 | svc_rdma_marshal.o svc_rdma_sendto.o svc_rdma_recvfrom.o | 8 | svc_rdma_marshal.o svc_rdma_sendto.o svc_rdma_recvfrom.o |