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

vtnet: Fix an LOR in the input path #97

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

vtnet: Fix an LOR in the input path #97

wants to merge 1 commit into from

Conversation

jlduran
Copy link
Owner

@jlduran jlduran commented Oct 12, 2024

if_vtnet holds a queue lock when processing incoming packets. It sends them up the stack without dropping the lock, which is incorrect. For example, witness generates warnings when if_vtnet receives ND6 packets.

Simply drop the lock before entering the network stack. We could batch this by linking a small number of packets using m_nextpkt; ether_input() handles such batches.

https://reviews.freebsd.org/D45950
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253888

if_vtnet holds a queue lock when processing incoming packets. It sends
them up the stack without dropping the lock, which is incorrect. For
example, witness generates warnings when if_vtnet receives ND6 packets.

Simply drop the lock before entering the network stack. We could batch
this by linking a small number of packets using m_nextpkt; ether_input()
handles such batches.
@jlduran jlduran self-assigned this Oct 12, 2024
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