Skip to content

Unserialize netdev_run_todo

Baptiste Covolato netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: Flush all skbs related to an unregistered devicenet/core/dev.c+3 -43 replies
2/3net: Inline netdev_wait_allrefs inside netdev_run_todonet/core/dev.c+47 -630 replies
3/3net: Make netdev_run_todo call notifiers in parallel.net/core/dev.c+83 -630 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/3] Unserialize netdev_run_todo

Interface deletion can be done in bulk for multiple interfaces (e.g. rollback_registered_many), reducing the number of calls needed to synchronize_net and rcu_barrier.
This logic is not used during the last phase of interface deletion after the rtnl mutex has been released in netdev_run_todo. In this case the deletion is done one interface at a time, resulting in multiple calls to on_each_cpu as well as rcu_barrier if notifications have to be rebroadcast. If any one interface's deletion is delayed, all interfaces following it will also be delayed. This series of patches allows for the last stage of interface deletion to also be done in bulk. In order to do this it also modifies flush_backlog to delete packets for all interfaces in NETREG_UNREGISTERED state.

Early work done by Adrien Schildknecht.

Baptiste Covolato (3):
net: Flush all skbs related to an unregistered device
net: Inline netdev_wait_allrefs inside netdev_run_todo
net: Make netdev_run_todo call notifiers in parallel.

 net/core/dev.c | 183 +++++++++++++++++++++++++++++----------------------------
 1 file changed, 93 insertions(+), 90 deletions(-)
Signature · 1 line
2.4.1