Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / net / sunrpc / xprtrdma / module.c
bloba762d192372b0a91d1768cb7af5ac779f336da12
1 /*
2 * Copyright (c) 2015, 2017 Oracle. All rights reserved.
3 */
5 /* rpcrdma.ko module initialization
6 */
8 #include <linux/types.h>
9 #include <linux/compiler.h>
10 #include <linux/module.h>
11 #include <linux/init.h>
12 #include <linux/sunrpc/svc_rdma.h>
14 #include <asm/swab.h>
16 #define CREATE_TRACE_POINTS
17 #include "xprt_rdma.h"
19 MODULE_AUTHOR("Open Grid Computing and Network Appliance, Inc.");
20 MODULE_DESCRIPTION("RPC/RDMA Transport");
21 MODULE_LICENSE("Dual BSD/GPL");
22 MODULE_ALIAS("svcrdma");
23 MODULE_ALIAS("xprtrdma");
25 static void __exit rpc_rdma_cleanup(void)
27 xprt_rdma_cleanup();
28 svc_rdma_cleanup();
31 static int __init rpc_rdma_init(void)
33 int rc;
35 rc = svc_rdma_init();
36 if (rc)
37 goto out;
39 rc = xprt_rdma_init();
40 if (rc)
41 svc_rdma_cleanup();
43 out:
44 return rc;
47 module_init(rpc_rdma_init);
48 module_exit(rpc_rdma_cleanup);