aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Morgenstein <jackm@dev.mellanox.co.il>2007-05-02 17:12:24 +0300
committerRoland Dreier <rolandd@cisco.com>2007-05-02 15:10:00 -0700
commit28b139ac1e8ca13f848c69a6d1ba1f9305612033 (patch)
tree7b59a7ada21f81b92407576bb8284891746e515d
parentbb586a91fb00e7b674e14ea6f39d9aac8042a91a (diff)
downloadlibmlx4-28b139ac1e8ca13f848c69a6d1ba1f9305612033.tar.gz
Fix inline send posting when posting more than one request
Need to set inl parameter to zero for each request when posting a list of requests, so that the value of inl is correct for each work request, and is not cumulative. Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--src/qp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qp.c b/src/qp.c
index 76abf75..a70e5f2 100644
--- a/src/qp.c
+++ b/src/qp.c
@@ -217,6 +217,7 @@ int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr,
if (wr->num_sge) {
struct mlx4_wqe_inline_seg *seg = wqe;
+ inl = 0;
wqe += sizeof *seg;
for (i = 0; i < wr->num_sge; ++i) {
uint32_t len = wr->sg_list[i].length;