Subject: Re: [PATCH net-next 0/2] net: do not rely on rtnl in netdev_nl_napi_get_xxx()

From: Jakub Kicinski <[email-masked]>
Date: Thu, 10 Oct 2024 08:55:59 -0700

On Wed,  9 Oct 2024 23:27:25 +0000 Eric Dumazet wrote:
> With upcoming per netns RTNL, rtnl use in netdev_nl_napi_get_doit()
> and netdev_nl_napi_get_dumpit() is a bit problematic.
> 
> They can be changed to only rely on RCU.

Oh, you already posted this.

I was hoping we can start moving NAPIs and queues under dev->lock,
gradually move all local netdev state under that lock. RCU only
gets us so far when we have to cross reference objects (e.g. link
queue to NAPI). Even with NAPI SET not sure if RCU will work given
the writes have to happen into the instance and the "config struct".