From fc82b150b0d4de5f3527208527d7396ad94ff725 Mon Sep 17 00:00:00 2001 From: Tatyana Nikolova Date: Thu, 18 Jan 2024 14:40:30 -0600 Subject: [PATCH] rsocket: Set INLINE data for iWARP 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 --- librdmacm/rsocket.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/librdmacm/rsocket.c b/librdmacm/rsocket.c index e26a053e7..1ecce564f 100644 --- a/librdmacm/rsocket.c +++ b/librdmacm/rsocket.c @@ -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;