]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e/i40evf: Refactor PHY structure and add phy_capabilities enum
authorCatherine Sullivan <catherine.sullivan@intel.com>
Tue, 1 Sep 2015 15:36:30 +0000 (11:36 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:32:37 +0000 (08:32 -0800)
commit2852b8d292a75522c80d3f75e24698129f2ca262
tree5227acac33c35d054ee20dd8bb8aa09b217373f9
parent6f715c47612bd6652347020f73ac982f2a50e2f1
i40e/i40evf: Refactor PHY structure and add phy_capabilities enum

Orabug: 22342532

Remove unused members in the PHY structure and add a new member to store
all the capabilities the PHY has as reported by the FW. This information
will help us determine what speeds the device is capable of when link is
down.

Also add an enum to decode the PHY types the NVM is capable of.
Use the phy_types variable to determine what phy types are possible
when link is down instead of device id as it will be more accurate.

When on a backplane device, we do not support changing any settings,
however we should display all the phy_types we are capable of so if we
see a backplane dev ID set supported and advertised purely based on
the phy_types variable.

Change-ID: Ia75d560f1fcd30c54cbfb7458690c5867559a930
Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit fc72dbce09989b268b20342473ddc8d77c8da350)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40e/i40e_type.h
drivers/net/ethernet/intel/i40evf/i40e_type.h