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

virtio: Inline vring_init() and vring_need_event() functions #569

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

Conversation

glneo
Copy link
Contributor

@glneo glneo commented Mar 15, 2024

Both of these functions should be internal to virtqueue. They should have had no usefulness outside of this file and so moving them should not cause any API issue. This simplifies the virtio ring setup code for later improvements

Both of these functions should be internal to virtqueue. They should have
had no usefulness outside of this file and so moving them should not
cause any API issue. This simplifies the virtio ring setup code for
later improvements

Signed-off-by: Andrew Davis <afd@ti.com>
Copy link
Collaborator

@arnopo arnopo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vring_init() is used at least by Zephyr, so should be kept in the API. https://elixir.bootlin.com/zephyr/latest/source/drivers/ethernet/eth_ivshmem_queue.c#L51

I don't think that vring_need_event() can be used externally. So Ok to me to not apply deprecation process

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 May 25, 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.

None yet

2 participants