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: handle result from encap ctx_redirect() in revDNAT path #25058

Merged
merged 1 commit into from Apr 26, 2023

Conversation

julianwiedmann
Copy link
Member

When redirecting a packet into the tunnel, return the result of that operation. Right now we're not reporting potential errors from the helper call.

This will become more relevant with native XDP encapsulation, where ctx_redirect() can also turn the CTX_REDIRECT into a XDP_TX.

Fixes: ff44164 ("bpf: Align rev_nodeport_lb{4,6} wrt egress GW tunnel mode")

When redirecting a packet into the tunnel, return the result of that
operation. Right now we're not reporting potential errors from the helper
call.

This will become more relevant with native XDP encapsulation, where
ctx_redirect() can also turn the CTX_REDIRECT into a XDP_TX.

Fixes: ff44164 ("bpf: Align rev_nodeport_lb{4,6} wrt egress GW tunnel mode")
Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
@julianwiedmann julianwiedmann added kind/bug This is a bug in the Cilium logic. sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. release-note/misc This PR makes changes that have no direct user impact. labels Apr 22, 2023
@julianwiedmann julianwiedmann requested a review from a team as a code owner April 22, 2023 09:07
@julianwiedmann
Copy link
Member Author

/test

@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 Apr 26, 2023
@julianwiedmann julianwiedmann merged commit f41d69c into cilium:main Apr 26, 2023
57 checks passed
@julianwiedmann julianwiedmann deleted the 1.14-nodeport-redirect branch April 26, 2023 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug This is a bug in the Cilium logic. 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
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants