]> git.baikalelectronics.ru Git - kernel.git/commit
ice: ethtool: advertise 1000M speeds properly
authorAnatolii Gerasymenko <anatolii.gerasymenko@intel.com>
Mon, 20 Jun 2022 07:47:05 +0000 (09:47 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 21 Jun 2022 20:48:57 +0000 (13:48 -0700)
commit61a392fd891141b20bddbd91bed8434c15f16c25
tree8d60f5d53302da2df44206e3a8e0a905da50b329
parente5f08e3ec9d6b58237dce28285b5e0f9e1d25b4f
ice: ethtool: advertise 1000M speeds properly

In current implementation ice_update_phy_type enables all link modes
for selected speed. This approach doesn't work for 1000M speeds,
because both copper (1000baseT) and optical (1000baseX) standards
cannot be enabled at once.

Fix this, by adding the function `ice_set_phy_type_from_speed()`
for 1000M speeds.

Fixes: 6c429a84c56e ("ice: Implement handlers for ethtool PHY/link operations")
Signed-off-by: Anatolii Gerasymenko <anatolii.gerasymenko@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