summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2022-02-02 03:03:28 +0300
committerDavid S. Miller <davem@davemloft.net>2022-02-02 17:43:59 +0300
commitcddbec19466a1dfb4d45ddd507d9f09f991d54ae (patch)
treef9c87afb5472bc9e391c00b9173f7336c3a8970e /tools/perf/scripts/python/export-to-sqlite.py
parent31eb6b4386ad91930417e3f5c8157a4b5e31cbd5 (diff)
downloadlinux-cddbec19466a1dfb4d45ddd507d9f09f991d54ae.tar.xz
net: dsa: qca8k: add tracking state of master port
MDIO/MIB Ethernet require the master port and the tagger availabale to correctly work. Use the new api master_state_change to track when master is operational or not and set a bool in qca8k_priv. We cache the first cached master available and we check if other cpu port are operational when the cached one goes down. This cached master will later be used by mdio read/write and mib request to correctly use the working function. qca8k implementation for MDIO/MIB Ethernet is bad. CPU port0 is the only one that answers with the ack packet or sends MIB Ethernet packets. For this reason the master_state_change ignore CPU port6 and only checks CPU port0 if it's operational and enables this mode. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions