netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: do not rely on rtnl in netdev_nl_napi_get_xxx()
@ 2024-10-09 23:27 Eric Dumazet
  2024-10-09 23:27 ` [PATCH net-next 1/2] netdev-genl: do not use rtnl in netdev_nl_napi_get_doit() Eric Dumazet
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Eric Dumazet @ 2024-10-09 23:27 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: Kuniyuki Iwashima, netdev, eric.dumazet, Eric Dumazet

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.

Eric Dumazet (2):
  netdev-genl: do not use rtnl in netdev_nl_napi_get_doit()
  netdev-genl: do not use rtnl in netdev_nl_napi_get_dumpit()

 include/linux/netdevice.h |  3 ++-
 net/core/dev.c            | 21 ++++++++++++---------
 net/core/netdev-genl.c    | 31 ++++++++++++++++---------------
 3 files changed, 30 insertions(+), 25 deletions(-)

-- 
2.47.0.rc0.187.ge670bccf7e-goog


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-10 15:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-09 23:27 [PATCH net-next 0/2] net: do not rely on rtnl in netdev_nl_napi_get_xxx() Eric Dumazet
2024-10-09 23:27 ` [PATCH net-next 1/2] netdev-genl: do not use rtnl in netdev_nl_napi_get_doit() Eric Dumazet
2024-10-09 23:27 ` [PATCH net-next 2/2] netdev-genl: do not use rtnl in netdev_nl_napi_get_dumpit() Eric Dumazet
2024-10-10 15:55 ` [PATCH net-next 0/2] net: do not rely on rtnl in netdev_nl_napi_get_xxx() Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).