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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions bpf/lib/nodeport.h
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ static __always_inline int rev_nodeport_lb6(struct __ctx_buff *ctx, __s8 *ext_er
ret = __encap_with_nodeid(ctx, tunnel_endpoint, SECLABEL, dst_id,
NOT_VTEP_DST, reason, monitor, &ifindex);
if (ret == CTX_ACT_REDIRECT)
ctx_redirect(ctx, ifindex, 0);
ret = ctx_redirect(ctx, ifindex, 0);
return ret;
#endif
}
Expand Down Expand Up @@ -2458,7 +2458,7 @@ static __always_inline int rev_nodeport_lb4(struct __ctx_buff *ctx, __s8 *ext_er
ret = __encap_with_nodeid(ctx, tunnel_endpoint, SECLABEL, dst_id,
NOT_VTEP_DST, reason, monitor, &ifindex);
if (ret == CTX_ACT_REDIRECT)
ctx_redirect(ctx, ifindex, 0);
ret = ctx_redirect(ctx, ifindex, 0);
return ret;
#endif
}
Expand Down