fix: always set vxlan udpcsum attribute - #1145
Conversation
fixes vishvananda#1144 we should always explicitly set this attribute for consistency between kernel versions, since the default udpcsum behaviour changes between versions.
WalkthroughModified the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)link_linux.go (1)
🔇 Additional comments (1)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@p-sherratt I understand the change, it modifies the current contract, but this is not a main concern. In #1144 you point out it is not possible to disable the UDP checksumming on an existing vxlan link via iproute2 commands and you point out to the reason, the kernel code explicitly not honoring such request. In your change, you modify addVxlanAttrs to always send to kernel the value of Vxlan.UDPcsum. Won't kernel now always reject a linkModify call over a vxlan link? What am I missing? |
fixes #1144
we should always explicitly set this attribute for consistency between kernel versions, since the default udpcsum behaviour changes between versions.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.