aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rds.h
diff options
context:
space:
mode:
authorAndy Grover <andy.grover@oracle.com>2010-03-01 19:10:40 -0500
committerAndy Grover <andy.grover@oracle.com>2010-09-08 21:12:06 -0400
commit2c3a5f9abb1dc5efdab8ba9a568b1661c65fd1e3 (patch)
tree72b6a4c5298fecf46637987fd8ae42296dc90a97 /include/linux/rds.h
parent7e3bd65ebfd5d6cd76b8b979920c632d6e6b4b2a (diff)
RDS: Add flag for silent ops. Do atomic op before RDMA
Add a flag to the API so users can indicate they want silent operations. This is needed because silent ops cannot be used with USE_ONCE MRs, so we can't just assume silent. Also, change send_xmit to do atomic op before rdma op if both are present, and centralize the hairy logic to determine if we want to attempt silent, or not. Signed-off-by: Andy Grover <andy.grover@oracle.com>
Diffstat (limited to 'include/linux/rds.h')
-rw-r--r--include/linux/rds.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/rds.h b/include/linux/rds.h
index 9239152abf7a..109f1d343318 100644
--- a/include/linux/rds.h
+++ b/include/linux/rds.h
@@ -276,5 +276,6 @@ struct rds_rdma_notify {
276#define RDS_RDMA_USE_ONCE 0x0008 /* free MR after use */ 276#define RDS_RDMA_USE_ONCE 0x0008 /* free MR after use */
277#define RDS_RDMA_DONTWAIT 0x0010 /* Don't wait in SET_BARRIER */ 277#define RDS_RDMA_DONTWAIT 0x0010 /* Don't wait in SET_BARRIER */
278#define RDS_RDMA_NOTIFY_ME 0x0020 /* Notify when operation completes */ 278#define RDS_RDMA_NOTIFY_ME 0x0020 /* Notify when operation completes */
279#define RDS_RDMA_SILENT 0x0040 /* Do not interrupt remote */
279 280
280#endif /* IB_RDS_H */ 281#endif /* IB_RDS_H */