aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorXiangqian Zhang <[email protected]>2025-01-17 09:46:03 +0000
committerJakub Kicinski <[email protected]>2025-01-20 20:02:38 +0000
commitf6f2e946aa4da1b378f44dbc79708b546f2a0c0e (patch)
tree8c4290ad6ca847c914cbe561718d7409087d8d9e /net/unix/af_unix.c
parentsysctl net: Remove macro checks for CONFIG_SYSCTL (diff)
downloadkernel-f6f2e946aa4da1b378f44dbc79708b546f2a0c0e.tar.gz
kernel-f6f2e946aa4da1b378f44dbc79708b546f2a0c0e.zip
net: mii: Fix the Speed display when the network cable is not connected
Two different models of usb card, the drivers are r8152 and asix. If no network cable is connected, Speed = 10Mb/s. This problem is repeated in linux 3.10, 4.19, 5.4, 6.12. This problem also exists on the latest kernel. Both drivers call mii_ethtool_get_link_ksettings, but the value of cmd->base.speed in this function can only be SPEED_1000 or SPEED_100 or SPEED_10. When the network cable is not connected, set cmd->base.speed =SPEED_UNKNOWN. Signed-off-by: Xiangqian Zhang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions