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

bpf: nodeport: wire up trace struct for IPv6 RevDNAT #26047

Merged

Conversation

julianwiedmann
Copy link
Member

@julianwiedmann julianwiedmann commented Jun 8, 2023

When the NAT path in to-overlay/to-netdev is included as tail_handle_nat_fwd_ipv6(), skip the hop through handle_nat_fwd_ipv6() and call the actual RevDNAT implementation straight away.

This allows us to pass through a trace_ctx struct, so that the RevDNAT can return precise trace information from its CT lookup.

The IPv4 path already does this, so we must have missed the boat at some point.

When the NAT path in to-overlay/to-netdev is included as
tail_handle_nat_fwd_ipv6(), skip the hop through handle_nat_fwd_ipv6()
and call the actual RevDNAT implementation straight away.

This allows us to pass through a trace_ctx struct, so that the RevDNAT can
return precise trace information from its CT lookup.

The IPv4 path already does this, so we must have missed the boat at some
point.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
@julianwiedmann julianwiedmann added sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. area/monitor Impacts monitoring, access logging, flow logging, visibility of datapath traffic. release-note/misc This PR makes changes that have no direct user impact. labels Jun 8, 2023
@julianwiedmann julianwiedmann requested a review from a team as a code owner June 8, 2023 17:46
@julianwiedmann julianwiedmann requested a review from aspsk June 8, 2023 17:46
@julianwiedmann
Copy link
Member Author

/test

@julianwiedmann julianwiedmann added feature/ipv6 Relates to IPv6 protocol support needs-backport/1.13 This PR / issue needs backporting to the v1.13 branch labels Jun 9, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from main in 1.13.4 Jun 9, 2023
@julianwiedmann
Copy link
Member Author

Looks like this cleanly cherry-picks back to v1.13, so let's apply it there as well.

Copy link
Contributor

@aspsk aspsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this makes more sense

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 9, 2023
@julianwiedmann
Copy link
Member Author

(the one fail in the GH ginkgo tests is #25964)

@dylandreimerink dylandreimerink merged commit a571731 into cilium:main Jun 9, 2023
64 of 65 checks passed
@julianwiedmann julianwiedmann deleted the 1.14-bpf-nodeport-ipv6-trace branch June 9, 2023 07:30
@qmonnet qmonnet added this to Needs backport from main in 1.13.5 Jun 9, 2023
@qmonnet qmonnet removed this from Needs backport from main in 1.13.4 Jun 9, 2023
@pchaigno pchaigno mentioned this pull request Jun 9, 2023
5 tasks
@michi-covalent michi-covalent mentioned this pull request Jun 13, 2023
7 tasks
@nbusseneau nbusseneau mentioned this pull request Jun 22, 2023
19 tasks
@nbusseneau nbusseneau added backport-pending/1.13 The backport for Cilium 1.13.x for this PR is in progress. and removed needs-backport/1.13 This PR / issue needs backporting to the v1.13 branch labels Jun 22, 2023
@tklauser tklauser added backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. and removed backport-pending/1.13 The backport for Cilium 1.13.x for this PR is in progress. labels Jun 29, 2023
@gentoo-root gentoo-root moved this from Needs backport from main to Backport done to v1.13 in 1.13.5 Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/monitor Impacts monitoring, access logging, flow logging, visibility of datapath traffic. backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. feature/ipv6 Relates to IPv6 protocol support ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact. sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages.
Projects
No open projects
1.13.5
Backport done to v1.13
Development

Successfully merging this pull request may close these issues.

None yet

5 participants