diff options
author | Dragos Tatulea <dtatulea@nvidia.com> | 2023-01-23 15:06:32 +0100 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2023-02-08 04:01:05 +0100 |
commit | 8aa5f171d51c1cb69e5e3106df4dd1a446102823 (patch) | |
tree | 7cdc63eddc96833f56a60cc8b4bf2a46ac1185e1 /include | |
parent | net/mlx5e: Fix crash unsetting rx-vlan-filter in switchdev mode (diff) | |
download | linux-8aa5f171d51c1cb69e5e3106df4dd1a446102823.tar.xz linux-8aa5f171d51c1cb69e5e3106df4dd1a446102823.zip |
net/mlx5e: IPoIB, Show unknown speed instead of error
ethtool is returning an error for unknown speeds for the IPoIB interface:
$ ethtool ib0
netlink error: failed to retrieve link settings
netlink error: Invalid argument
netlink error: failed to retrieve link settings
netlink error: Invalid argument
Settings for ib0:
Link detected: no
After this change, ethtool will return success and show "unknown speed":
$ ethtool ib0
Settings for ib0:
Supported ports: [ ]
Supported link modes: Not reported
Supported pause frame use: No
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: Unknown!
Duplex: Full
Auto-negotiation: off
Port: Other
PHYAD: 0
Transceiver: internal
Link detected: no
Fixes: eb234ee9d541 ("net/mlx5e: IPoIB, Add support for get_link_ksettings in ethtool")
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions