[27.x backport] vendor: vendor: github.com/vishvananda/netlink v1.3.x (084abd93d) and fix compatibility#48938
Merged
akerouanton merged 8 commits intomoby:27.xfrom Dec 19, 2024
Conversation
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 <[email protected]> (cherry picked from commit 6d0a5e3) Signed-off-by: Sebastiaan van Stijn <[email protected]>
full diff: vishvananda/netlink@v1.2.1...v1.3.0 Signed-off-by: Sebastiaan van Stijn <[email protected]> (cherry picked from commit 2c498c6) Signed-off-by: Sebastiaan van Stijn <[email protected]>
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 <[email protected]> (cherry picked from commit 00bf437) Signed-off-by: Sebastiaan van Stijn <[email protected]>
Commit f9c0103 (WSL2 mirrored-mode loopback) uses netlink funcs that were removed/wrapped by commit 00bf437. Signed-off-by: Rob Murray <[email protected]> (cherry picked from commit 333cfa6) Signed-off-by: Sebastiaan van Stijn <[email protected]>
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 <[email protected]> (cherry picked from commit edaa0eb) Signed-off-by: Sebastiaan van Stijn <[email protected]>
…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 <[email protected]> (cherry picked from commit fd0d008) Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Rob Murray <[email protected]> (cherry picked from commit 2f02f45) Signed-off-by: Sebastiaan van Stijn <[email protected]>
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 <[email protected]> (cherry picked from commit a0a0bba) Signed-off-by: Sebastiaan van Stijn <[email protected]>
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
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
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: