diff options
| author | Eric Dumazet <[email protected]> | 2025-01-09 17:18:50 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-01-14 09:17:53 +0000 |
| commit | 88df16f851ad8473ae89aba36d07e76b11c798ca (patch) | |
| tree | b0cd7903874bdd65fe95e4b6dcae2a5a0ed1299a /drivers/net/phy/phy.c | |
| parent | Merge branch 'mlx5-hw-managed-flow-steering-in-fs-core-level' (diff) | |
| download | kernel-88df16f851ad8473ae89aba36d07e76b11c798ca.tar.gz kernel-88df16f851ad8473ae89aba36d07e76b11c798ca.zip | |
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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/net/phy/phy.c')
0 files changed, 0 insertions, 0 deletions
