[GH-41867][Part-1][eBPF] Add support for hybrid routing in datapath#41868
Conversation
499e645 to
4d3d78b
Compare
4d3d78b to
d215a8f
Compare
|
/test |
d215a8f to
1952662
Compare
Thank you @YutaroHayakawa for your review. I have addressed your comments. Would appreciate another pass. |
2ab5cc6 to
34e78d4
Compare
d5a70d1 to
bdc686d
Compare
dylandreimerink
left a comment
There was a problem hiding this comment.
Changes look good from the loader perspective. Will let Yutaro handle the datapath review.
YutaroHayakawa
left a comment
There was a problem hiding this comment.
@anubhabMajumdar Seems like you re-requested my review, but seems like there are some comments and suggestions which is not resolved yet. Let me request change. Please take a look whenever you have time.
Replied to the comment I missed. Let me know what you think. Thanks for your feedback. |
|
Conversation around the pipeline failure - https://cilium.slack.com/archives/C7PE7V806/p1763051497549979 |
|
/test |
|
/ci-ginkgo |
|
/ci-e2e-upgrade |
|
/ci-ginkgo |
|
/ci-ipsec-e2e |
|
https://github.com/cilium/cilium/actions/runs/19340685839/job/55328009387 ci-ginkgo fails with provisioning LVH VMs. |
Signed-off-by: Anubhab Majumdar <anmajumdar@microsoft.com>
eebe5ae to
b4044a8
Compare
|
/test |
|
/ci-gateway-api |
|
/ci-ipsec-e2e |
|
@julianwiedmann Addressed your comments here - #43631 . Thanks! |
|
FYI given that this is only a portion of the infrastructure required for the feature, I have changed the release note category to |
Description
The motivation behind adding a new routing mode is discussed in this CFP .
This is Part 1 of feature:
For reference, here's a draft PR with the entire feature implemented - #41405 .
Overview
This feature would allow user to configure Cilium cluster(s) with multiple subnets, and benefit from both tunnel and native routing mode for maximum efficiency (no overhead of tunneling when not needed).
Motivation
Changes Overview
Datapath
This covers all the C code changes. Files edited/added:
bpf/lib/subnet.h- This has the LPM trie based subnet map, similar to the IPCache map. Has functions for lookup.bpf_lxc.c- Added an extra check toskip_tunnel. Now, skip tunneling if IPs belong to same subnet.bpf_host.c- Added an extra check toskip_tunnel. Now, skip tunneling if IPs belong to same subnet.DBG_SUBNET_CHECKandDBG_TUNNEL_TRACEfor debugging purposes. Will remove these before merging.Testing Done
The full feature is tested using the change draft PR.
I tested this change against a cluster and verified:
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