Skip to content

rtnetlink: rtnl_stats_dump() changes

Eric Dumazet netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2rtnetlink: change rtnl_stats_dump() return valuenet/core/rtnetlink.c+1 -14 repliesApplied
2/2rtnetlink: use for_each_netdev_dump() in rtnl_stats_dump()net/core/rtnetlink.c+22 -371 replyApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDavid Ahern
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/2] rtnetlink: rtnl_stats_dump() changes

Getting rid of RTNL in rtnl_stats_dump() looks challenging.

In the meantime, we can:

1) Avoid RTNL acquisition for the final NLMSG_DONE marker.

2) Use for_each_netdev_dump() instead of the net->dev_index_head[] hash table.

Eric Dumazet (2):
rtnetlink: change rtnl_stats_dump() return value
rtnetlink: use for_each_netdev_dump() in rtnl_stats_dump()

 net/core/rtnetlink.c | 61 +++++++++++++++++---------------------------
 1 file changed, 23 insertions(+), 38 deletions(-)
Signature · 1 line
2.45.0.rc0.197.gbae5840b3b-goog