bpf: Support IPsec over IPv6 underlay#39620
Merged
Conversation
To support IPv6 underlays in IPsec, we need set_ipsec_encrypt to be able to take IPv6 tunnel endpoints as an argument. This information is passed via the ipcache value. A new helper function, lookup_node, then performs the IPv4 or IPv6 lookup in the node ID map. Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Support encrypted overlay for IPv6 underlays by detecting to-be-encrypted traffic and marking it for encryption, as is done in the IPv4 case. Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Member
Author
|
/test |
ysksuzuki
reviewed
May 20, 2025
Member
ysksuzuki
left a comment
There was a problem hiding this comment.
Does our current e2e test setup already cover the IPsec over IPv6 underlay scenario?
Member
Author
No. As said in the PR description, that will come in a follow up PR with the agent changes. |
Member
Oh I missed it |
rgo3
approved these changes
May 21, 2025
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.
This pull request adds support in our datapath for IPsec over IPv6 underlays. Agent changes and CI coverage will come in a followup pull request.