Skip to content

rtnetlink: RTNL avoidance in rtnl_getlink() and rtnl_dump_ifinfo()

Eric Dumazet netdev 5 versions – 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 · linked by author and title

  1. v5 Latest5 patches 2 repliesApplied 5/5
  2. v45 patches 2 repliesSuperseded
  3. v33 patches 4 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches5 repliesSuperseded
v12 patches1 replySuperseded

Patches in v5 All 5 applied

#Subject and filesSizeRepliesApplied
1/5rtnetlink: use nla_nest_end_safe() in rtnl_fill_prop_list()net/core/rtnetlink.c+4 -10 repliesApplied
2/5net: defer netdev_name_node_alt_flush() call to netdev_run_todo()net/core/dev.c+2 -20 repliesApplied
3/5rtnetlink: do not acquire RTNL in rtnl_getlink() with RTEXT_FILTER_NAME_ONLYnet/core/rtnetlink.c+67 -272 repliesApplied
4/5rtnetlink: do not assume RTNL is held in link_master_filtered()net/core/rtnetlink.c+8 -60 repliesApplied
5/5rtnetlink: add RTEXT_FILTER_NAME_ONLY support to rtnl_dump_ifinfo()net/core/rtnetlink.c+15 -40 repliesApplied

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchKuniyuki Iwashima
1/5
2/5R-b
3/5
4/5
5/5

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

Read the v5 thread

Cover letter [PATCH v5 net-next 0/5] rtnetlink: RTNL avoidance in rtnl_getlink() and rtnl_dump_ifinfo()

Many shell scripts invoke iproute2 commands specifying a device by its name.

This series improves their performance avoiding RTNL acquisition for their (repeated) name->index conversion.

v5: fix rtnl_fill_prop_list() return value.
v4: Addressed Sashiko's feedback.
added 2 patches for rtnl_dump_ifinfo().
v3: insert patch 2/3 in the series (Jakub reported a KASAN splat)

Eric Dumazet (5):
rtnetlink: use nla_nest_end_safe() in rtnl_fill_prop_list()
net: defer netdev_name_node_alt_flush() call to netdev_run_todo()
rtnetlink: do not acquire RTNL in rtnl_getlink() with
RTEXT_FILTER_NAME_ONLY
rtnetlink: do not assume RTNL is held in link_master_filtered()
rtnetlink: add RTEXT_FILTER_NAME_ONLY support to rtnl_dump_ifinfo()

 net/core/dev.c       |   4 +-
 net/core/rtnetlink.c | 130 +++++++++++++++++++++++++++++++------------
 2 files changed, 95 insertions(+), 39 deletions(-)
Signature · 1 line
2.54.0.746.g67dd491aae-goog