Skip to content

Perftest: Fix address cycling bug in local address increment logic #338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NitzanLavy
Copy link

The increase_loc_addr() function manages circular buffer addressing. One of the input argument is rcnt, which represents the number of post_send/post_receive operations that were called per QP. Based on rcnt, it internally calculates the local address for the next operation. When setting up receive WQEs, this function is being called with the index of the current operation instead of the amount that was already called. This incorrect indexing caused the last WQE in the buffer to incorrectly point to the first WQE's address in the QP. This bug affects the cyclic address calculation used for cache-efficient data placement. The fix ensures proper address cycling by passing the correct index to the function.

Reviewed-by: Firas Jahjah [email protected]
Reviewed-by: Daniel Kranzdorf [email protected]

The increase_loc_addr() function manages circular buffer addressing.
One of the input argument is rcnt, which represents the number of
post_send/post_receive operations that were called per QP. Based on
rcnt, it internally calculates the local address for the next operation.
When setting up receive WQEs, this function is being called with the
index of the current operation instead of the amount that was already
called. This incorrect indexing caused the last WQE in the buffer to
incorrectly point to the first WQE's address in the QP.
This bug affects the cyclic address calculation used for cache-efficient
data placement. The fix ensures proper address cycling by passing the
correct index to the function.

Reviewed-by: Firas Jahjah <[email protected]>
Reviewed-by: Daniel Kranzdorf <[email protected]>
Signed-off-by: Nitzan Lavy <[email protected]>
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.

1 participant