Commit 9184e51b authored by Shay Agroskin's avatar Shay Agroskin Committed by Saeed Mahameed

net/mlx5e: Fix failing ethtool query on FEC query error

If FEC caps query fails when executing 'ethtool <interface>'
the whole callback fails unnecessarily, fixed that by replacing the
error return code with debug logging only.

Fixes: 6cfa9460 ("net/mlx5e: Ethtool driver callback for query/set FEC policy")
Signed-off-by: default avatarShay Agroskin <shayag@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 64e28334
...@@ -843,8 +843,7 @@ static int mlx5e_get_link_ksettings(struct net_device *netdev, ...@@ -843,8 +843,7 @@ static int mlx5e_get_link_ksettings(struct net_device *netdev,
ethtool_link_ksettings_add_link_mode(link_ksettings, supported, ethtool_link_ksettings_add_link_mode(link_ksettings, supported,
Autoneg); Autoneg);
err = get_fec_supported_advertised(mdev, link_ksettings); if (get_fec_supported_advertised(mdev, link_ksettings))
if (err)
netdev_dbg(netdev, "%s: FEC caps query failed: %d\n", netdev_dbg(netdev, "%s: FEC caps query failed: %d\n",
__func__, err); __func__, err);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment