aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds/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 /net/rds/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 'net/rds/rds.h')
-rw-r--r--net/rds/rds.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/rds/rds.h b/net/rds/rds.h
index 46d190d0854..23b921000e7 100644
--- a/net/rds/rds.h
+++ b/net/rds/rds.h
@@ -319,6 +319,7 @@ struct rds_message {
319 unsigned int op_notify:1; 319 unsigned int op_notify:1;
320 unsigned int op_recverr:1; 320 unsigned int op_recverr:1;
321 unsigned int op_mapped:1; 321 unsigned int op_mapped:1;
322 unsigned int op_silent:1;
322 unsigned int op_active:1; 323 unsigned int op_active:1;
323 struct scatterlist *op_sg; 324 struct scatterlist *op_sg;
324 struct rds_notifier *op_notifier; 325 struct rds_notifier *op_notifier;
@@ -333,6 +334,7 @@ struct rds_message {
333 unsigned int op_notify:1; 334 unsigned int op_notify:1;
334 unsigned int op_recverr:1; 335 unsigned int op_recverr:1;
335 unsigned int op_mapped:1; 336 unsigned int op_mapped:1;
337 unsigned int op_silent:1;
336 unsigned int op_active:1; 338 unsigned int op_active:1;
337 unsigned int op_bytes; 339 unsigned int op_bytes;
338 unsigned int op_nents; 340 unsigned int op_nents;