summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/client/src/client.h
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-08-30 08:04:07 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-08-30 06:54:17 -0700
commit06607a4de8c4414bb102d61b9cf6307d8da020bb (patch)
treea9fc304f78f067c5d9777218e845e57525cec702 /xlators/protocol/client/src/client.h
parent300b4fefcbb5a5ced4f0554e109679e44cdf44ea (diff)
changes to client to make use of the rdma functionality.
- preallocate buffers in client and pass them to transport layer whenever a large response is expected. Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 513 (Introduce 0 copy rdma) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=513
Diffstat (limited to 'xlators/protocol/client/src/client.h')
-rw-r--r--xlators/protocol/client/src/client.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/xlators/protocol/client/src/client.h b/xlators/protocol/client/src/client.h
index 473ae2a49..84940de5f 100644
--- a/xlators/protocol/client/src/client.h
+++ b/xlators/protocol/client/src/client.h
@@ -77,6 +77,7 @@ typedef struct client_local {
clnt_fd_ctx_t *fdctx;
uint32_t flags;
uint32_t wbflags;
+ struct iobref *iobref;
fop_cbk_fn_t op;
} clnt_local_t;
@@ -124,7 +125,10 @@ int client_local_wipe (clnt_local_t *local);
int client_submit_request (xlator_t *this, void *req,
call_frame_t *frame, rpc_clnt_prog_t *prog,
int procnum, fop_cbk_fn_t cbk,
- struct iobref *iobref, gfs_serialize_t sfunc);
+ struct iobref *iobref, gfs_serialize_t sfunc,
+ struct iovec *rsphdr, int rsphdr_count,
+ struct iovec *rsp_payload, int rsp_count,
+ struct iobref *rsp_iobref);
int protocol_client_reopendir (xlator_t *this, clnt_fd_ctx_t *fdctx);
int protocol_client_reopen (xlator_t *this, clnt_fd_ctx_t *fdctx);