]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix curr_link_speed advertised speed
authorJedrzej Jagielski <jedrzej.jagielski@intel.com>
Tue, 22 Feb 2022 11:43:04 +0000 (11:43 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 8 Mar 2022 21:31:09 +0000 (13:31 -0800)
commit830980e76f9b4ea27a1af15cecf8db26ccdab4af
tree2270d61261042a4a320b8c8666b684ee04d92c5a
parentb6ee9ad267890636e7478ca238f05af4d8b13c34
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: 6a4fe288293f ("ice: Implement handlers for ethtool PHY/link operations")
Signed-off-by: Grzegorz Siwik <grzegorz.siwik@intel.com>
Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski@intel.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_ethtool.c