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: fix the rpmsg_get_tx/rx_buffer() api #630

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

Conversation

CV-Bowen
Copy link
Contributor

@CV-Bowen CV-Bowen commented Nov 4, 2024

user tx/rx buffer size = orignal tx/rx buffer_size - sizeof(rpmsg_hdr)

And use buffer size in config to calculate the user buffer size instead the buffer size from virtqueue, because there may be no buffer in virtqueue.

user tx/rx buffer size = orignal tx/rx buffer_size - sizeof(rpmsg_hdr)

And use buffer size in config to calculate the user buffer size instead
the buffer size from virtqueue, because there may be no buffer in virtqueeu.

Signed-off-by: Tao Yin <[email protected]>
Signed-off-by: Bowen Wang <[email protected]>
@arnopo
Copy link
Collaborator

arnopo commented Nov 5, 2024

And use buffer size in config to calculate the user buffer size instead the buffer size from virtqueue, because there may be no buffer in virtqueue.

Please clarify your need because you are breaking the expected behavior: returning 0 if no buffer is available.

Copy link

This pull request has been marked as a stale pull request because it has been open (more than) 45 days with no activity.

@github-actions github-actions bot added the Stale label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants