]> asedeno.scripts.mit.edu Git - linux.git/commit
i40e: group autoneg PHY types together
authorAlan Brady <alan.brady@intel.com>
Thu, 5 Oct 2017 21:53:38 +0000 (14:53 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 17 Oct 2017 17:48:51 +0000 (10:48 -0700)
commit6987bd25e2be49ec0c25c6c15ba2bcb6327f9ed4
tree646d23b14ebb29452ee235125dde953d9b2d0698
parenta03af69f5c2813e3c76630d043716a3b685c9d30
i40e: group autoneg PHY types together

This separates the setting of autoneg in i40e_phy_types_to_ethtool into
its own conditional.  Doing this adds clarity as what PHYs
support/advertise autoneg and makes it easier to add new PHY types in
the future.

This also fixes an issue on devices with CRT_RETIMER where advertising
autoneg was being set, but supported autoneg was not.

Signed-off-by: Alan Brady <alan.brady@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c