Re: [PATCH net 1/2] vxlan: keep reserved_bits across changelink

From
Petr Machata <petrm@nvidia.com>
Date
2026-10-26 09:52:48
Also in
linux-kselftest, lkml
Reply to
Hannes Laimer, 2026-10-23
Hannes Laimer [off-list ref] writes:
vxlan_nl2conf() derives reserved_bits from the extension attributes
set in the netlink message if IFLA_VXLAN_RESERVED_BITS is absent. A
changelink having it set is rejected, so this means that every
changelink will reset all extension bits and reserve them again.
vxlan_nl2flag() rejects setting a flag on an attribute that is
create-only on changelink. So also setting an extension attribute will
fail before it can un-reserve its fields.
Keeping the reserved_bits on changelink is safe because anything a
changelink accepts leaves the header bits enabled extensions use
unchanged.
Fixes: e4f8647767cf ("vxlan: Track reserved bits explicitly as part of the configuration")
Link: https://lore.proxmox.com/pve-devel/20260828134708.692354-1-h.laimer@proxmox.com/
Signed-off-by: Hannes Laimer <redacted>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Thread (10 messages) 10 messages, 6 authors, last reply 11d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help