]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
vxlan: allow multiple VXLANs with same VNI for IPv6 link-local addresses
authorMatthias Schiffer <mschiffer@universe-factory.net>
Mon, 19 Jun 2017 08:04:00 +0000 (10:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jun 2017 17:37:03 +0000 (13:37 -0400)
commit49f810f00fa347427fa8cba2197b303234842d25
tree20c023f49c87ae453ec2ecb8f4196ade88452554
parent87613de95041a88e426105d05a53acece52fd81e
vxlan: allow multiple VXLANs with same VNI for IPv6 link-local addresses

As link-local addresses are only valid for a single interface, we can allow
to use the same VNI for multiple independent VXLANs, as long as the used
interfaces are distinct. This way, VXLANs can always be used as a drop-in
replacement for VLANs with greater ID space.

This also extends VNI lookup to respect the ifindex when link-local IPv6
addresses are used, so using the same VNI on multiple interfaces can
actually work.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c