]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: convert i40e_phy_type_to_ethtool to new API
authorAlan Brady <alan.brady@intel.com>
Thu, 5 Oct 2017 21:53:41 +0000 (14:53 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 17 Oct 2017 17:48:51 +0000 (10:48 -0700)
commitc7f1cadd794212f15e6d4c580b84bcde95ddc95e
tree160bb5a79894d53bd48db27ebbba0d0ab9486e59
parent6ece3b99d462b4aa3c3bd4db94ec80241a714f6c
i40e: convert i40e_phy_type_to_ethtool to new API

We are still largely using the old ethtool API macros.  This is
problematic because eventually they will be removed and they only
support 32 bits of PHY types.

This overhauls i40e_phy_type_to_ethtool to use only the new API.  Doing
this also allows us to provide much better support for newer 25G and 10G
PHY types which is included here as well.

The remaining usages of the old ethtool API will be addressed in other
patches in the series.

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