]> git.openfabrics.org - ~shefty/libmlx4.git/commitdiff
Fix inline send posting when posting more than one request
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Wed, 2 May 2007 14:12:24 +0000 (17:12 +0300)
committerRoland Dreier <rolandd@cisco.com>
Wed, 2 May 2007 22:10:00 +0000 (15:10 -0700)
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>
src/qp.c

index 76abf75f4049c83d0d1dcf384b64b581d857ac2c..a70e5f22d425bdb282ae5e087e3878a92f9a87d0 100644 (file)
--- 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;