OSDN Git Service

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)
commit1eaae5198e0db1f523fa3432ded69247aa33bf20
tree160bb5a79894d53bd48db27ebbba0d0ab9486e59
parent5a6cd6de76ae78b651e7c36eba8b1da465d65f06
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