diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2007-05-02 17:12:24 +0300 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-05-02 15:10:00 -0700 |
commit | 28b139ac1e8ca13f848c69a6d1ba1f9305612033 (patch) | |
tree | 7b59a7ada21f81b92407576bb8284891746e515d | |
parent | bb586a91fb00e7b674e14ea6f39d9aac8042a91a (diff) | |
download | libmlx4-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |