diff options
| author | Raju Rangoju <Raju.Rangoju@amd.com> | 2025-10-10 12:21:42 +0530 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2025-10-14 10:30:34 +0200 |
| commit | 2616222e423398bb374ffcb5d23dea4ba2c3e524 (patch) | |
| tree | 0ee19008a55c6455c70470443df471b871fa2107 /scripts/lib/kdoc/kdoc_parser.py | |
| parent | 2c67301584f2671e320236df6bbe75ae09feb4d0 (diff) | |
amd-xgbe: Avoid spurious link down messages during interface toggle
During interface toggle operations (ifdown/ifup), the driver currently
resets the local helper variable 'phy_link' to -1. This causes the link
state machine to incorrectly interpret the state as a link change event,
resulting in spurious "Link is down" messages being logged when the
interface is brought back up.
Preserve the phy_link state across interface toggles to avoid treating
the -1 sentinel value as a legitimate link state transition.
Fixes: 88131a812b16 ("amd-xgbe: Perform phy connect/disconnect at dev open/stop")
Signed-off-by: Raju Rangoju <Raju.Rangoju@amd.com>
Reviewed-by: Dawid Osuchowski <dawid.osuchowski@linux.intel.com>
Link: https://patch.msgid.link/20251010065142.1189310-1-Raju.Rangoju@amd.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions
