Unserialize netdev_run_todo
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | net: Flush all skbs related to an unregistered devicenet/ | +3 | 3 replies | |
| 2/3 | net: Inline netdev_wait_allrefs inside netdev_run_todonet/ | +47 | 0 replies | |
| 3/3 | net: Make netdev_run_todo call notifiers in parallel.net/ | +83 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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