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

Description of Simple Handler #25

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

its-sachin
Copy link

No description provided.

vmm-reference-simple-handler.md Show resolved Hide resolved
vmm-reference-simple-handler.md Outdated Show resolved Hide resolved
vmm-reference-simple-handler.md Outdated Show resolved Hide resolved
vmm-reference-simple-handler.md Outdated Show resolved Hide resolved
vmm-reference-simple-handler.md Outdated Show resolved Hide resolved
pub fn process_tap(&mut self) -> result::Result<(), Error>
```

While any of write_frame_to_guest or enable_notification from Rx queue is true, it sets rxbuf_current to value read by tap from Rx buffer (only if rxbuf_current is 0). Finally notifies driver_notify with index as `RXQ_INDEX` if Rx queue needs notification

Choose a reason for hiding this comment

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

While any one of write_frame_to_guest or enable_notification from the Rx queue is true, it sets rxbuf_current to the value read by tap from the Rx buffer (only if rxbuf_current is 0). Finally, if the Rx queue requires notification, notifies driver_notify with the index RXQ_INDEX.

vmm-reference-simple-handler.md Outdated Show resolved Hide resolved
Copy link
Owner

@codenet codenet left a comment

Choose a reason for hiding this comment

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

Please address existing comments. We can then merge.

vmm-reference-simple-handler.md Outdated Show resolved Hide resolved
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.

7 participants