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

Fix known issues in the snull driver #92

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ImanSeyed
Copy link
Contributor

@ImanSeyed ImanSeyed commented Oct 20, 2024

If the first device registration fails, the second iteration of the loop
will set the ret to zero. Also, jumping to snull_cleanup() will put the
device into unreg queue which is unnecessary.
By using napi_schedule_prep() and __napi_schedule(), ensure NAPI polls
are scheduled before disabling interrupts. This prevents dropped polls
and ensures rx_int_enabled is properly updated, fixing 100% packet loss
during state changes.

Authored-by: Leon <[email protected]>
Signed-off-by: Iman Seyed <[email protected]>
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.

A lock is missing to relaese in snull_get_tx_buffer
1 participant