diff options
author | Roland Dreier <rolandd@cisco.com> | 2005-07-08 18:39:49 +0000 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-11-09 19:57:01 -0800 |
commit | 2e0b0cc294c3bbd0a01d432dc1191d0d79a0b992 (patch) | |
tree | 41d26b9a9410f619fe566fa1b1b423f39f8efe1b | |
parent | 7abe087b3858db2180ae2b7739edbfd02ecc8467 (diff) | |
download | libmthca-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.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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; } |