sfc: Add support for sub-10G speeds
The SFC4000 has a separate MAC for use at sub-10G speeds. Introduce an efx_mac_operations structure with implementations for the two MACs. Switch between the MACs as necessary. PHY settings are independent of the MAC, so add get_settings() and set_settings() to efx_phy_operations. Also add macs field to indicate which MACs the PHY is connected to. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
356eebb2b3
commit
177dfcd80f
@@ -176,7 +176,7 @@ static int sfe4001_check_hw(struct efx_nic *efx)
|
||||
s32 status;
|
||||
|
||||
/* If XAUI link is up then do not monitor */
|
||||
if (EFX_WORKAROUND_7884(efx) && falcon_xaui_link_ok(efx))
|
||||
if (EFX_WORKAROUND_7884(efx) && efx->mac_up)
|
||||
return 0;
|
||||
|
||||
/* Check the powered status of the PHY. Lack of power implies that
|
||||
|
Reference in New Issue
Block a user