[GH-41867][Part-2][eBPF] Add BPF tests for skip_tunnel flag and subnet-based routing interaction in hybrid mode#43631
Merged
julianwiedmann merged 3 commits intocilium:mainfrom Jan 23, 2026
Conversation
01f797c to
4caa4fd
Compare
8 tasks
Contributor
Author
|
/test |
Contributor
Author
|
|
Contributor
Author
|
/ci-integration |
8 tasks
Contributor
Author
Contributor
Author
|
Hi @YutaroHayakawa , added BPF tests for this last change - #41868 . Thanks! |
YutaroHayakawa
approved these changes
Jan 15, 2026
Contributor
Author
|
/ci-l7 |
rgo3
approved these changes
Jan 16, 2026
Contributor
Author
|
/ci-l7 |
4caa4fd to
1300171
Compare
Contributor
Author
|
/test |
Contributor
Author
|
Contributor
Author
|
/ci-verifier |
Contributor
Author
|
/ci-ipsec-e2e |
Contributor
Author
|
/ci-delegated-ipam |
Contributor
Author
|
/ci-l7 |
Contributor
|
This needs to be rebased to last main for:
|
Relocate hybrid_routing_enabled configuration from the Node config to subnet.h where it's used. This provides better scoping and allows per-program control of the feature. Signed-off-by: Anubhab Majumdar <anmajumdar@microsoft.com>
Extend LXC and host BPF load test permutations to include HybridRoutingEnabled configuration option. Signed-off-by: Anubhab Majumdar <anmajumdar@microsoft.com>
Add test cases for skip_tunnel flag interaction with subnet-based routing. Signed-off-by: Anubhab Majumdar <anmajumdar@microsoft.com>
1300171 to
2ab793a
Compare
Contributor
Author
|
/test |
Member
|
@ysksuzuki Could you please take a look at this? |
Contributor
Author
|
/ci-clustermesh |
Comment on lines
+16
to
+21
| struct subnet_key key = { | ||
| .lpm_key.prefixlen = SUBNET_PREFIX_LEN(mask_size), | ||
| .family = ENDPOINT_KEY_IPV4, | ||
| .ip4 = addr, | ||
| }; | ||
|
|
Member
There was a problem hiding this comment.
Please also take a moment to wire up the map structs into bpf/bpf_alignchecker.c, and consider this in the controlplane code. To ensure that both sides operate with the same perspective wrt struct layout.
Contributor
Author
There was a problem hiding this comment.
Thanks, will do!
8 tasks
8 tasks
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.
Description
The motivation behind adding a new routing mode is discussed in this CFP .
Part 1 introduces the data path changes - #41868 .
Key Changes
hybrid_routing_enabledfromnode.htosubnet.hskip_tunnelflag and subnet-based routing in Cilium's egress datapath.Please ensure your pull request adheres to the following guidelines:
description and a
Fixes: #XXXline if the commit addresses a particularGitHub issue.
Fixes: <commit-id>tag, thenplease add the commit author[s] as reviewer[s] to this issue.
Fixes: #41867