aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDotan Barak <dotanb@dev.mellanox.co.il>2012-09-20 20:31:04 +0000
committerRoland Dreier <roland@purestorage.com>2013-04-03 11:21:48 -0700
commit7b47c7aaa1721f864bf57cd030fae6cb418da97a (patch)
treeb87b91e5e323fdad5766d9821c95528324abc578
parent2ca39871bed5ef380a3133ca89bf81fb2f2e2181 (diff)
downloadlibmlx4-7b47c7aaa1721f864bf57cd030fae6cb418da97a.tar.gz
Allow using the whole Blue Flame buffer
Increase the maximum size of messages (from 192 to 208) that will use the Blue Flame buffer -- the old code will not use the buffer if the size to be copied fits in the buffer exactly. Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il> Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
-rw-r--r--src/qp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qp.c b/src/qp.c
index 40a6689..a032517 100644
--- a/src/qp.c
+++ b/src/qp.c
@@ -394,7 +394,7 @@ int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr,
out:
ctx = to_mctx(ibqp->context);
- if (nreq == 1 && inl && size > 1 && size < ctx->bf_buf_size / 16) {
+ if (nreq == 1 && inl && size > 1 && size <= ctx->bf_buf_size / 16) {
ctrl->owner_opcode |= htonl((qp->sq.head & 0xffff) << 8);
*(uint32_t *) ctrl->reserved |= qp->doorbell_qpn;
/*