aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2005-07-08 18:39:49 +0000
committerRoland Dreier <rolandd@cisco.com>2006-11-09 19:57:01 -0800
commit2e0b0cc294c3bbd0a01d432dc1191d0d79a0b992 (patch)
tree41d26b9a9410f619fe566fa1b1b423f39f8efe1b
parent7abe087b3858db2180ae2b7739edbfd02ecc8467 (diff)
downloadlibmthca-2e0b0cc294c3bbd0a01d432dc1191d0d79a0b992.tar.gz
Fix returned max_inline_data
Subtract size of remote addr segment from max_inline_data returned to user, so that the limit is correct for RDMA writes. Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--src/qp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/qp.c b/src/qp.c
index 7af274a..0ebcc6c 100644
--- a/src/qp.c
+++ b/src/qp.c
@@ -863,11 +863,7 @@ void mthca_return_cap(struct ibv_pd *pd, struct mthca_qp *qp, struct ibv_qp_cap
break;
default:
- /*
- * inline data won't be used in the same WQE as an
- * atomic or bind segment, so we don't have to
- * subtract anything off here.
- */
+ cap->max_inline_data -= sizeof (struct mthca_raddr_seg);
break;
}