fix(controller): enable ARP learning on VPC routers that have peerings - #6882
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates VPC handling logic so ARP learning behavior is enabled when VPC peerings are configured, not only when external networking is enabled.
Changes:
- Extend
learnFromARPRequestcondition to also consider presence ofvpc.Spec.VpcPeerings.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| } | ||
|
|
||
| learnFromARPRequest := vpc.Spec.EnableExternal | ||
| learnFromARPRequest := vpc.Spec.EnableExternal || len(vpc.Spec.VpcPeerings) != 0 |
| } | ||
|
|
||
| learnFromARPRequest := vpc.Spec.EnableExternal | ||
| learnFromARPRequest := vpc.Spec.EnableExternal || len(vpc.Spec.VpcPeerings) != 0 |
VPC peering requires ARP learning on the logical router. Cross-VPC traffic arrives via the peer LRP, so the destination router needs to learn pod MACs from ARP requests. Without it, packets are mis-forwarded (tunneled instead of local delivery). Previously, learnFromARPRequest was only set for EnableExternal and U2O interconnection. This patch also enables it when any VpcPeerings exist. Signed-off-by: Apinant U-suwantim <Hello@Apinant.dev>
LoneExile
force-pushed
the
fix/vpc-peering-arp-learn
branch
from
June 17, 2026 04:39
addc971 to
dbcf176
Compare
Coverage Report for CI Build 27737245944Coverage remained the same at 26.652%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
oilbeater
approved these changes
Jun 18, 2026
Member
|
Thanks! @LoneExile |
oilbeater
pushed a commit
that referenced
this pull request
Jun 18, 2026
#6882) VPC peering requires ARP learning on the logical router. Cross-VPC traffic arrives via the peer LRP, so the destination router needs to learn pod MACs from ARP requests. Without it, packets are mis-forwarded (tunneled instead of local delivery). Previously, learnFromARPRequest was only set for EnableExternal and U2O interconnection. This patch also enables it when any VpcPeerings exist. Signed-off-by: Apinant U-suwantim <Hello@Apinant.dev> (cherry picked from commit 70fe403)
oilbeater
pushed a commit
that referenced
this pull request
Jun 18, 2026
#6882) VPC peering requires ARP learning on the logical router. Cross-VPC traffic arrives via the peer LRP, so the destination router needs to learn pod MACs from ARP requests. Without it, packets are mis-forwarded (tunneled instead of local delivery). Previously, learnFromARPRequest was only set for EnableExternal and U2O interconnection. This patch also enables it when any VpcPeerings exist. Signed-off-by: Apinant U-suwantim <Hello@Apinant.dev> (cherry picked from commit 70fe403)
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.
Description
VPC peering requires ARP learning on the logical router.
When traffic arrives from a peered VPC, it enters via the peer LRP. If
always_learn_from_arp_request=false, the destination pod's MAC is never learned intomac_binding, so the router mis-forwards the packet (tunnels it instead of delivering locally).Currently
learnFromARPRequestis only set forEnableExternaland the U2O interconnection case. This change also enables it when the VPC has anyVpcPeerings.Impact