Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixgbe/ixgbe_82599.c
Show First 20 Lines • Show All 435 Lines • ▼ Show 20 Lines | if (hw->phy.sfp_type == ixgbe_sfp_type_1g_cu_core0 || | ||||
hw->phy.sfp_type == ixgbe_sfp_type_1g_lx_core1 || | hw->phy.sfp_type == ixgbe_sfp_type_1g_lx_core1 || | ||||
hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core0 || | hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core0 || | ||||
hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core1) { | hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core1) { | ||||
*speed = IXGBE_LINK_SPEED_1GB_FULL; | *speed = IXGBE_LINK_SPEED_1GB_FULL; | ||||
*autoneg = true; | *autoneg = true; | ||||
goto out; | goto out; | ||||
} | } | ||||
if (hw->phy.sfp_type == ixgbe_sfp_type_da_cu_core0 || | |||||
hw->phy.sfp_type == ixgbe_sfp_type_da_cu_core1) { | |||||
*speed = IXGBE_LINK_SPEED_10GB_FULL; | |||||
*autoneg = true; | |||||
emaste: was this case picked up elsewhere before? | |||||
kbowlingAuthorUnsubmitted Not Done Inline Actionsit would fall under the eeprom control below which would yield a 10g link unless someone alters their eeprom to force 1g. kbowling: it would fall under the eeprom control below which would yield a 10g link unless someone alters… | |||||
if (hw->phy.multispeed_fiber) | |||||
*speed |= IXGBE_LINK_SPEED_1GB_FULL; | |||||
goto out; | |||||
} | |||||
/* | /* | ||||
* Determine link capabilities based on the stored value of AUTOC, | * Determine link capabilities based on the stored value of AUTOC, | ||||
* which represents EEPROM defaults. If AUTOC value has not | * which represents EEPROM defaults. If AUTOC value has not | ||||
* been stored, use the current register values. | * been stored, use the current register values. | ||||
*/ | */ | ||||
if (hw->mac.orig_link_settings_stored) | if (hw->mac.orig_link_settings_stored) | ||||
autoc = hw->mac.orig_autoc; | autoc = hw->mac.orig_autoc; | ||||
else | else | ||||
▲ Show 20 Lines • Show All 2,200 Lines • Show Last 20 Lines |
was this case picked up elsewhere before?