diff options
author | Eric Dumazet <edumazet@google.com> | 2025-01-09 17:18:50 +0000 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-01-14 10:17:53 +0100 |
commit | 88df16f851ad8473ae89aba36d07e76b11c798ca (patch) | |
tree | b0cd7903874bdd65fe95e4b6dcae2a5a0ed1299a /tools/perf/scripts/python/export-to-sqlite.py | |
parent | a833fb852e96c778bff1d14866f1db2c346b3d2e (diff) |
net: sched: calls synchronize_net() only when needed
dev_deactivate_many() role is to remove the qdiscs
of a network device.
When/if a qdisc is dismantled, an rcu grace period
is needed to make sure all outstanding qdisc enqueue
are done before we proceed with a qdisc reset.
Most virtual devices do not have a qdisc.
We can call the expensive synchronize_net() only
if needed.
Note that dev_deactivate_many() does not have to deal
with qdisc-less dev_queue_xmit, as an old comment
was claiming.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250109171850.2871194-1-edumazet@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions