Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixgbe/if_ix.c
Show First 20 Lines • Show All 921 Lines • ▼ Show 20 Lines | ixgbe_if_attach_pre(if_ctx_t ctx) | ||||
* Initialize the shared code | * Initialize the shared code | ||||
*/ | */ | ||||
if (ixgbe_init_shared_code(hw) != 0) { | if (ixgbe_init_shared_code(hw) != 0) { | ||||
device_printf(dev, "Unable to initialize the shared code\n"); | device_printf(dev, "Unable to initialize the shared code\n"); | ||||
error = ENXIO; | error = ENXIO; | ||||
goto err_pci; | goto err_pci; | ||||
} | } | ||||
if (hw->mac.ops.fw_recovery_mode && hw->mac.ops.fw_recovery_mode(hw)) { | |||||
device_printf(dev, "Firmware recovery mode detected. Limiting " | |||||
"functionality.\nRefer to the Intel(R) Ethernet Adapters " | |||||
"and Devices User Guide for details on firmware recovery " | |||||
"mode."); | |||||
error = EIO; | |||||
kbowling: Is this a good error code for this situation? | |||||
goto err_pci; | |||||
} | |||||
if (hw->mbx.ops.init_params) | if (hw->mbx.ops.init_params) | ||||
hw->mbx.ops.init_params(hw); | hw->mbx.ops.init_params(hw); | ||||
hw->allow_unsupported_sfp = allow_unsupported_sfp; | hw->allow_unsupported_sfp = allow_unsupported_sfp; | ||||
if (hw->mac.type != ixgbe_mac_82598EB) | if (hw->mac.type != ixgbe_mac_82598EB) | ||||
hw->phy.smart_speed = ixgbe_smart_speed; | hw->phy.smart_speed = ixgbe_smart_speed; | ||||
▲ Show 20 Lines • Show All 3,845 Lines • Show Last 20 Lines |
Is this a good error code for this situation?