diff options
| author | Eric Dumazet <[email protected]> | 2022-02-17 22:54:30 -0800 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-02-18 07:28:31 -0800 |
| commit | 86213f80da1b1d007721cc22e04b5f5d0da33127 (patch) | |
| tree | e0aff65d6880e34f9aa01b9f977d814b2c3f30e1 /tools/perf/scripts/python/libxed.py | |
| parent | 086d49058cd8471046ae9927524708820f5fd1c7 (diff) | |
net: avoid quadratic behavior in netdev_wait_allrefs_any()
If the list of devices has N elements, netdev_wait_allrefs_any()
is called N times, and linkwatch_forget_dev() is called N*(N-1)/2 times.
Fix this by calling linkwatch_forget_dev() only once per device.
Fixes: faab39f63c1f ("net: allow out-of-order netdev unregistration")
Signed-off-by: Eric Dumazet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions