]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitad35ffa252af67d4cc7c744b9377a2b577748e3f
tree2270d61261042a4a320b8c8666b684ee04d92c5a
parent3d97f1afd8d831e0c0dc1157418f94b8faa97b54
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 <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