mbox series

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

Message ID 20241009232728.107604-1-edumazet@google.com (mailing list archive)
Headers show
Series net: do not rely on rtnl in netdev_nl_napi_get_xxx() | expand

Message

Eric Dumazet Oct. 9, 2024, 11:27 p.m. UTC
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(-)