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

Allow NLMSG_DONE with no data #935

Merged
merged 1 commit into from
Jan 21, 2024

Conversation

adrianchiris
Copy link
Collaborator

@adrianchiris adrianchiris commented Dec 6, 2023

certain implementations in kernel return NLMSG_DONE with no data. If that is the case, assume no error occured.

currently we panic.

Note:
This behaviour exists in devlink subsystem, and possibly others.
clarification has been added to kernel docs[1]

[1] https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=8ad55b1e73c4e77656e2bea68fa2b484f33a6425

certain implementations in kernel return NLMSG_DONE
with no data. If that is the case, assume no error occured.

Signed-off-by: adrianc <[email protected]>
@adrianchiris
Copy link
Collaborator Author

@aboch @vishvananda PTAL :)

@aboch
Copy link
Collaborator

aboch commented Jan 21, 2024

LGTM

@aboch aboch merged commit 51f9bba into vishvananda:main Jan 21, 2024
2 checks passed
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.

2 participants