Skip to content

Perftest: Preserve per-WR SGE length - #412

Merged
sshaulnv merged 1 commit into
masterfrom
fix-validation-sge-length
Oct 15, 2026
Merged

sshaulnv merged 1 commit into
masterfrom
fix-validation-sge-length

Conversation

@sshaulnv

Copy link
Copy Markdown
Contributor

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.

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 <sshaul@nvidia.com>
@dbatheesh

Copy link
Copy Markdown
Contributor

LGTM

@sshaulnv
sshaulnv merged commit 68fdb9f into master Oct 15, 2026
2 checks passed
@sshaulnv
sshaulnv deleted the fix-validation-sge-length branch October 15, 2026 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants