aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAryan Srivastava <[email protected]>2024-10-10 13:49:34 +1300
committerJakub Kicinski <[email protected]>2024-10-11 08:43:47 -0700
commit7e5b547cac7a56515b2838b496923e52ec4eeddd (patch)
tree6bebf41afca7435f38cf645049dbf15d9f2dd2fd /tools/perf/scripts/python
parent8401a108a63302a5a198c7075d857895ca624851 (diff)
net: phy: aquantia: poll status register
The system interface connection status register is not immediately correct upon line side link up. This results in the status being read as OFF and then transitioning to the correct host side link mode with a short delay. This causes the phylink framework passing the OFF status down to all MAC config drivers, resulting in the host side link being misconfigured, which in turn can lead to link flapping or complete packet loss in some cases. Mitigate this by periodically polling the register until it not showing the OFF state. This will be done every 1ms for 10ms, using the same poll/timeout as the processor intensive operation reads. If the phy is still expressing the OFF state after the timeout, then set the link to false and pass the NA interface mode onto the phylink framework. Signed-off-by: Aryan Srivastava <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions