# Re: \[PATCH net-next v3 1/4\] udp\_tunnel: remove rtnl\_lock dependency

- From: Jakub Kicinski \<kuba@kernel.org\>
- Date: 2025-06-12 14:39:31 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/06/3089478
- Thread: https://ratatoskr.run/netdev/2025/06/3085708/t.md

```text
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.
```
