aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/compaction-times.py
diff options
context:
space:
mode:
authorVladimir Oltean <[email protected]>2022-09-11 04:07:00 +0300
committerPaolo Abeni <[email protected]>2022-09-20 10:32:35 +0200
commit6e61b55c6d7f20f5619e831fa171f65bfbcf03c7 (patch)
treefe2f27de28b256369f933a418ab3bfd5b0fff0e0 /tools/perf/scripts/python/compaction-times.py
parent95f510d0b792f308d3d748242fe960c35bdc2c62 (diff)
net: dsa: don't keep track of admin/oper state on LAG DSA masters
We store information about the DSA master's state in cpu_dp->master_admin_up and cpu_dp->master_oper_up, and this assumes a bijective association between a CPU port and a DSA master. However, when we have CPU ports in a LAG (and DSA masters in a LAG too), the way in which we set up things is that the physical DSA masters still have dev->dsa_ptr pointing to our cpu_dp, but the bonding/team device itself also has its dev->dsa_ptr pointing towards one of the CPU port structures (the first one). So logically speaking, that first cpu_dp can't keep track of both the physical master's admin/oper state, and of the bonding master's state. This isn't even needed; the reason why we keep track of the DSA master's state is to know when it is available for Ethernet-based register access. For that use case, we don't even need LAG; we just need to decide upon one of the physical DSA masters (if there is more than 1 available) and use that. This change suppresses dsa_tree_master_{admin,oper}_state_change() calls on LAG DSA masters (which will be supported in a future change), to allow the tracking of just physical DSA masters. Link: https://lore.kernel.org/netdev/[email protected]/ Suggested-by: Christian Marangi <[email protected]> Signed-off-by: Vladimir Oltean <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions