On Wed, 11 Jun 2025 19:47:54 -0700 Stanislav Fomichev wrote:
There are multiple entry points to this code, basically each member of struct udp_tunnel_nic_ops and the netdev notifiers. In this patch only reset and work are locked. I'm a bit confused as to what is the new lock protecting :S
I though that most of the callers are from do_setlink and there we have rtnl and we grab rtnl+lock during the sync. But that doesn't address the suspend/resume vs do_setlink race, that's true :-(
It's the UDP tunnels that add and remove the ports usually.