From eaeca10dd6deb543371958e1f4c1b8a9839c5b10 Mon Sep 17 00:00:00 2001 From: Shmuel Shaul Date: Thu, 15 Oct 2026 09:15:44 +0300 Subject: [PATCH] Perftest: Preserve per-WR SGE length PR #407 changed the ibv_wr post path to select the address and lkey from each work request, but continued using user_param->size as the SGE length. Data validation chains an 8-byte fetch-and-add WQE, causing payload sizes other than 8 to fail with a CQE for wr_id 1000. Use each work request's SGE length. This preserves PR #407's per-WR scatter-entry fix while restoring READ and WRITE data validation. Signed-off-by: Shmuel Shaul --- src/perftest_resources.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/perftest_resources.c b/src/perftest_resources.c index 7b098c89..0eb815a7 100755 --- a/src/perftest_resources.c +++ b/src/perftest_resources.c @@ -577,7 +577,7 @@ static inline int _new_post_send(struct pingpong_context *ctx, ctx->qpx[index], wr->sg_list->lkey, wr->sg_list->addr, - user_param->size); + wr->sg_list->length); } wr = wr->next; }