Re: [PATCH net-next v2] ip6_gre: fix changelink conflict checks for L2 tunnels
From: Xia Yan
Date: Fri Nov 13 2026 - 05:44:39 EST
Hi Jakub,
Thanks for the review. I've dropped the collect_md filter from
ip6gre_tunnel_find(). v3 only changes ip6gre_changelink_common().
For ordinary devices, it uses dev->type and rejects a match on another
device, including a metadata device. For metadata devices, it updates
the device itself without the ordinary duplicate search, as newlink
does. The newlink, legacy ioctl and receive lookups are unchanged.
I also moved the conflict and unregistering checks before encapsulation
changes, so these rejected requests leave the encapsulation unchanged.
I tested both L2 kinds under UML with ip6gre0 present, checked the receive
interfaces and tunnel metadata, and ran the legacy ioctl checks.
v3:
https://lore.kernel.org/netdev/179455350258.84965.17518172977020586093.ip6gre-v3@xxxxxxxxxxxxxxxxxxxx/
Thanks,
Xia Yan