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

[v1.15] Backport of #31200 - linux device user choice prioritization #31206

Merged
merged 1 commit into from Mar 7, 2024

Conversation

bimmlerd
Copy link
Member

@bimmlerd bimmlerd commented Mar 6, 2024

Once this PR is merged, a GitHub action will update the labels of these PRs:

 31200

[ upstream commit 2b51393 ]

The devices controller contains the logic to determine which devices are
considered "selected" - that is, which devices cilium considers for
things like the choice of direct routing device, etc.

As part of this logic, we look at the user-provided configuration, in
the form of the '--devices' flag. However, existing code is slightly too
opinionated in that it excludes the loopback device before it looks at
what the user specifies. It has been reported that using the loopback
interface lo as the direct routing device worked in 1.14, but no longer
does in 1.15. As this is a somewhat unusual setup, we require the user
to specifically include 'lo' into the devices and respect their choice
in the selection logic.

Fixes: 03ad61b (datapath/linux: Implement DevicesController)

Signed-off-by: David Bimmler <david.bimmler@isovalent.com>
@bimmlerd bimmlerd added kind/backports This PR provides functionality previously merged into master. backport/1.15 This PR represents a backport for Cilium 1.15.x of a PR that was merged to main. labels Mar 6, 2024
@bimmlerd bimmlerd changed the title v1.15 Backports 2024-03-06 [v1.15] Backport of #31200 - linux device user choice prioritization Mar 6, 2024
@bimmlerd bimmlerd marked this pull request as ready for review March 6, 2024 16:33
@bimmlerd bimmlerd requested a review from a team as a code owner March 6, 2024 16:33
@bimmlerd
Copy link
Member Author

bimmlerd commented Mar 6, 2024

/test-backport-1.15

@bimmlerd
Copy link
Member Author

bimmlerd commented Mar 6, 2024

@bimmlerd
Copy link
Member Author

bimmlerd commented Mar 7, 2024

CI is green, review is good - marking ready-to-merge as MLH isn't 😢

@bimmlerd bimmlerd added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Mar 7, 2024
@sayboras sayboras merged commit ac7a8f8 into v1.15 Mar 7, 2024
219 checks passed
@sayboras sayboras deleted the pr/v1.15-backport-2024-03-06-05-29 branch March 7, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.15 This PR represents a backport for Cilium 1.15.x of a PR that was merged to main. kind/backports This PR provides functionality previously merged into master. ready-to-merge This PR has passed all tests and received consensus from code owners to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants