-
Notifications
You must be signed in to change notification settings - Fork 18.9k
[27.x backport] vendor: vendor: github.com/vishvananda/netlink v1.3.x (084abd93d) and fix compatibility #48938
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
Merged
akerouanton
merged 8 commits into
moby:27.x
from
thaJeztah:27.x_backport_update_netlink
Dec 19, 2024
Merged
[27.x backport] vendor: vendor: github.com/vishvananda/netlink v1.3.x (084abd93d) and fix compatibility #48938
akerouanton
merged 8 commits into
moby:27.x
from
thaJeztah:27.x_backport_update_netlink
Dec 19, 2024
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
Author
|
Needed for updating buildkit v0.18 |
Member
Author
|
Missed an import somewhere; maybe #48515 ? |
e235c6c to
9bcd31a
Compare
Member
Author
|
Failures are unrelated, but are more flaky since recently; likely related to the runc 1.2 update |
5 tasks
Local changes related to: - vishvananda/netlink@c96b03b - vishvananda/netlink@dedb7ec full diff: vishvananda/netlink@v1.2.1-beta.2...v1.2.1 Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 6d0a5e3) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
full diff: vishvananda/netlink@v1.2.1...v1.3.0 Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 2c498c6) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
A recent change to the vishvananda/netlink package exposes NLM_F_DUMP_INTR in some netlink responses as an EINTR (with no data). Retry the requests when that happens, up to five times, before returning the error. The limit of five is arbitrary, on most systems a single retry will be rare but, there's no guarantee that a retry will succeed. So, on a very busy or misbehaving system the error may still be returned. In most cases, this will lead to failure of the operation being attempted (which may lead to daemon startup failure, network initialisation failure etc). Signed-off-by: Rob Murray <rob.murray@docker.com> (cherry picked from commit 00bf437) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Spot netlink functions that may return EINTR because network configuration changed during a state dump, and point at the nlutil wrappers. Signed-off-by: Rob Murray <rob.murray@docker.com> (cherry picked from commit edaa0eb) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
…93d350 Particularly for: - Preserve results when NLM_F_DUMP_INTR is set (1018). - Fix SetSendTimeout/SetReceiveTimeout (1012). full diff: vishvananda/netlink@v1.3.0...084abd9 Signed-off-by: Rob Murray <rob.murray@docker.com> (cherry picked from commit fd0d008) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Rob Murray <rob.murray@docker.com> (cherry picked from commit 2f02f45) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Returning possibly inconsistent data avoids retrying indefinitely, and matches the behaviour of vishvananda/netlink prior to version 1.2.1, in which the NLM_F_DUMP_INTR flag was ignored. Signed-off-by: Rob Murray <rob.murray@docker.com> (cherry picked from commit a0a0bba) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
9bcd31a to
4141379
Compare
Member
Author
|
Rebased; minor conflicts in imports due to the modprobe PR already being merged in this branch; |
akerouanton
approved these changes
Dec 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport: