diff options
author | Eric Dumazet <edumazet@google.com> | 2020-11-24 12:38:22 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-25 11:28:12 -0800 |
commit | 2543a6000e593a213fba5b504f52c07e09f39835 (patch) | |
tree | 74cded007848826335fa87abc2f7a749d3e469d2 /tools/perf/scripts/python/flamegraph.py | |
parent | 12a8fe56c0f06eaab1f9d89d246c3591bcc7a966 (diff) |
gro_cells: reduce number of synchronize_net() calls
After cited commit, gro_cells_destroy() became damn slow
on hosts with a lot of cores.
This is because we have one additional synchronize_net() per cpu as
stated in the changelog.
gro_cells_init() is setting NAPI_STATE_NO_BUSY_POLL, and this was enough
to not have one synchronize_net() call per netif_napi_del()
We can factorize all the synchronize_net() to a single one,
right before freeing per-cpu memory.
Fixes: 5198d545dba8 ("net: remove napi_hash_del() from driver-facing API")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20201124203822.1360107-1-eric.dumazet@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions