Skip to content
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

rpmsg_virtio: used list to handle the rx buffers #1

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

CV-Bowen
Copy link
Contributor

Summary

Without this patch, if the recursive occur in the ept->cb() when we has get current rx buffer (1st buffer) and next rx buffer (2nd buffer), the 3rd rx buffer in the recursived ept->cb() will be handled ahead of the 2nd rx buffer.

To avoid the out-of-order issue, use a list to store all the rx buffer, so the rx buffer will be hanlded strictly with the received order

Impact

the rpmsg virtio communication

Testing

testing with sim rpproxy and rpserver config

Without this patch, if the recursive occur in the ept->cb() when we
has get current rx buffer (1st buffer) and next rx buffer (2nd buffer),
the 3rd rx buffer in the recursived ept->cb() will be handled ahead of
the 2nd rx buffer.

To avoid the out-of-order issue, use a list to store all the rx buffer,
so the rx buffer will be hanlded strictly with the received order

Signed-off-by: Bowen Wang <[email protected]>
Signed-off-by: Yongrong Wang <[email protected]>
@xiaoxiang781216 xiaoxiang781216 merged commit b94fea7 into open-vela:dev Jan 14, 2025
3 checks passed
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