Skip to content

Commit

Permalink
rsocket: Set INLINE data for iWARP
Browse files Browse the repository at this point in the history
Set rsocket SQ INLINE to RS_MSG_SIZE for
iWARP, because rstream sets INLINE to zero
for bandwidth tests and there is a check in
rs_create_ep():

if ((rs->opts & RS_OPT_MSG_SEND) && (rs->sq_inline < RS_MSG_SIZE))
                return ERR(ENOTSUP);

which causes the test to fail for iWARP.

Signed-off-by: Tatyana Nikolova <[email protected]>
  • Loading branch information
tatyana-en committed Feb 9, 2024
1 parent 0c6807a commit fc82b15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion librdmacm/rsocket.c
Expand Up @@ -917,8 +917,12 @@ static int rs_create_ep(struct rsocket *rs)
int i, ret;

rs_set_qp_size(rs);
if (rs->cm_id->verbs->device->transport_type == IBV_TRANSPORT_IWARP)
if (rs->cm_id->verbs->device->transport_type == IBV_TRANSPORT_IWARP) {
rs->opts |= RS_OPT_MSG_SEND;

if (rs->sq_inline < RS_MSG_SIZE)
rs->sq_inline = RS_MSG_SIZE;
}
ret = rs_create_cq(rs, rs->cm_id);
if (ret)
return ret;
Expand Down

0 comments on commit fc82b15

Please sign in to comment.