summaryrefslogtreecommitdiff
path: root/scripts/basic/split-include.c
diff options
context:
space:
mode:
authorDong Yibo <dong100@mucse.com>2026-10-26 15:54:45 +0800
committerPaolo Abeni <pabeni@redhat.com>2026-10-29 12:26:28 +0100
commit6815a2513effd1c6c0bf9c2f1c8c459e597d985d (patch)
treea0a9eb0538d785850f2709b8346f0c6d46cbbd33 /scripts/basic/split-include.c
parent85b4bc79dde77aadda0929a22f3532b208a3e1f8 (diff)
downloadlinux-6815a2513effd1c6c0bf9c2f1c8c459e597d985d.tar.gz
linux-6815a2513effd1c6c0bf9c2f1c8c459e597d985d.zip
net: rnpgbe: Accept link-down events without speed magic
The interface can continue reporting carrier up after the link goes down because the driver ignores the firmware's link-down notification. Firmware reports link-down events with a zero port_magic and no valid speed or duplex information. The driver requires ST_VALID_MAGIC for every link event and returns before updating the cached link state when this check fails. It also writes an invalid driver snapshot to firmware instead of acknowledging the link-down state. Validate the speed magic only for link-up events. This allows link-down events to update the cached state, propagate carrier loss, and update the snapshot exported to firmware. Keep the checks for invalid link-up magic and unsupported speeds. Fixes: 92a671d510a8 ("net: rnpgbe: Add link status handling support") Signed-off-by: Dong Yibo <dong100@mucse.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/C2DFBBF04F1DCFD2+20261026075445.920572-1-dong100@mucse.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions