diff options
| author | Jedrzej Jagielski <[email protected]> | 2022-02-22 11:43:04 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2022-03-08 21:31:09 +0000 |
| commit | ad35ffa252af67d4cc7c744b9377a2b577748e3f (patch) | |
| tree | 2270d61261042a4a320b8c8666b684ee04d92c5a /drivers/net/ethernet/intel/ice/ice_ethtool.c | |
| parent | ice: Don't use GFP_KERNEL in atomic context (diff) | |
| download | kernel-ad35ffa252af67d4cc7c744b9377a2b577748e3f.tar.gz kernel-ad35ffa252af67d4cc7c744b9377a2b577748e3f.zip | |
ice: Fix curr_link_speed advertised speed
Change curr_link_speed advertised speed, due to
link_info.link_speed is not equal phy.curr_user_speed_req.
Without this patch it is impossible to set advertised
speed to same as link_speed.
Testing Hints: Try to set advertised speed
to 25G only with 25G default link (use ethtool -s 0x80000000)
Fixes: 48cb27f2fd18 ("ice: Implement handlers for ethtool PHY/link operations")
Signed-off-by: Grzegorz Siwik <[email protected]>
Signed-off-by: Jedrzej Jagielski <[email protected]>
Tested-by: Gurucharan <[email protected]> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_ethtool.c')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c index e2e3ef7fba7f..a5dc9824e255 100644 --- a/drivers/net/ethernet/intel/ice/ice_ethtool.c +++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c @@ -2298,7 +2298,7 @@ ice_set_link_ksettings(struct net_device *netdev, if (err) goto done; - curr_link_speed = pi->phy.link_info.link_speed; + curr_link_speed = pi->phy.curr_user_speed_req; adv_link_speed = ice_ksettings_find_adv_link_speed(ks); /* If speed didn't get set, set it to what it currently is. |
