Skip to content

net: do not rely on rtnl in netdev_nl_napi_get_xxx()

Eric Dumazet netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2netdev-genl: do not use rtnl in netdev_nl_napi_get_doit()include/linux/netdevice.h net/core/dev.c net/core/netdev-genl.c+25 -200 replies
2/2netdev-genl: do not use rtnl in netdev_nl_napi_get_dumpit()net/core/netdev-genl.c+5 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.47.0.rc0.187.ge670bccf7e-goog