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: l3: limit kube-proxy workaround in l3_local_delivery() to bpf_overlay #27908

Merged
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/l3.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ l3_local_delivery(struct __ctx_buff *ctx, __u32 seclabel,
ctx->mark |= MARK_MAGIC_IDENTITY;
set_identity_mark(ctx, seclabel);

# if defined(TUNNEL_MODE) && !defined(ENABLE_NODEPORT)
# if defined(IS_BPF_OVERLAY) && !defined(ENABLE_NODEPORT)
/* In tunneling mode, we execute this code to send the packet from
* cilium_vxlan to lxc*. If we're using kube-proxy, we don't want to use
* redirect() because that would bypass conntrack and the reverse DNAT.
Expand All @@ -102,7 +102,7 @@ l3_local_delivery(struct __ctx_buff *ctx, __u32 seclabel,
return CTX_ACT_OK;
# else
return redirect_ep(ctx, ep->ifindex, from_host);
# endif /* !ENABLE_ROUTING && TUNNEL_MODE && !ENABLE_NODEPORT */
# endif /* IS_BPF_OVERLAY && !ENABLE_NODEPORT */
#else
# ifndef DISABLE_LOOPBACK_LB
/* Skip ingress policy enforcement for hairpin traffic. As the hairpin
Expand Down