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
daemon: use netlink for managed neighbor support probe #25134
Conversation
Tested this probe logic manually on 6.1 and 5.10. It didn't error out on either version, probing managed neighbor support conclusively (available on 6.1, not available on 5.10). |
/test |
aef3117
to
5887743
Compare
/test |
runtime hit #22373, rerunning. Also marking as ready to review. |
/test-runtime |
5887743
to
2f0cc75
Compare
2f0cc75
to
ddfbaa5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just a few nits.
ddfbaa5
to
b2bfd37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! One last nit on the docstring.
This helper allows tests for feature probes to be skipped on kernel versions that are known to lack the feature. Signed-off-by: Timo Beckers <timo@isovalent.com>
With this commit we refactor the probe logic that checks for the existence of a certain helper as this could break on older distro kernel that have backported the commit we probed for. Using actual netlink calls to probe for managed neighbor support will only succeed if the underlying kernel actually supports it. Fixes cilium#20694. Signed-off-by: Robin Gögge <r.goegge@isovalent.com>
b2bfd37
to
e7d8d4a
Compare
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for adding the explanatory comment in haveManagedNeighbors
.
With this commit we refactor the probe logic that checks for the existence of a certain helper as this could break on older distro kernels that have backported the commit we probed for.
Using actual netlink calls to probe for managed neighbor support will only succeed if the underlying kernel actually supports it.
Fixes #20694.