]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of rs-iwarp
authorSean Hefty <sean.hefty@intel.com>
Sun, 14 Apr 2013 16:55:15 +0000 (09:55 -0700)
committerSean Hefty <sean.hefty@intel.com>
Sun, 14 Apr 2013 16:55:15 +0000 (09:55 -0700)
src/rsocket.c

index 79aa53b0d21533e4896b20f6be2c84685868a882..4caa93a5163b301c02079d494a7485926ba5cbbb 100644 (file)
@@ -1542,16 +1542,16 @@ static int rs_post_msg(struct rsocket *rs, uint32_t msg)
        wr.wr_id = rs_send_wr_id(msg);
        wr.next = NULL;
        if (!(rs->opts & RS_OPT_MSG_SEND)) {
-               wr.sg_list = &sge;
-               wr.num_sge = 1;
-               wr.opcode = IBV_WR_SEND;
-               wr.send_flags = IBV_SEND_INLINE;
-       } else {
                wr.sg_list = NULL;
                wr.num_sge = 0;
                wr.opcode = IBV_WR_RDMA_WRITE_WITH_IMM;
                wr.send_flags = 0;
                wr.imm_data = htonl(msg);
+       } else {
+               wr.sg_list = &sge;
+               wr.num_sge = 1;
+               wr.opcode = IBV_WR_SEND;
+               wr.send_flags = IBV_SEND_INLINE;
        }
 
        return rdma_seterrno(ibv_post_send(rs->cm_id->qp, &wr, &bad));