xprtrdma: Add vector of ops for each memory registration strategy
[deliverable/linux.git] / net / sunrpc / xprtrdma / physical_ops.c
1 /*
2 * Copyright (c) 2015 Oracle. All rights reserved.
3 * Copyright (c) 2003-2007 Network Appliance, Inc. All rights reserved.
4 */
5
6 /* No-op chunk preparation. All client memory is pre-registered.
7 * Sometimes referred to as ALLPHYSICAL mode.
8 *
9 * Physical registration is simple because all client memory is
10 * pre-registered and never deregistered. This mode is good for
11 * adapter bring up, but is considered not safe: the server is
12 * trusted not to abuse its access to client memory not involved
13 * in RDMA I/O.
14 */
15
16 #include "xprt_rdma.h"
17
18 #if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
19 # define RPCDBG_FACILITY RPCDBG_TRANS
20 #endif
21
22 const struct rpcrdma_memreg_ops rpcrdma_physical_memreg_ops = {
23 .ro_displayname = "physical",
24 };
This page took 0.057598 seconds and 5 git commands to generate.