summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Souza <luiz@netgate.com>2017-09-24 21:50:11 -0500
committerLuiz Souza <luiz@netgate.com>2017-09-24 21:50:11 -0500
commitb7884c70310a64bacbaf7365a031ec1310081f5c (patch)
tree05e5f0b32f02e8da09ebcf1fe4e859f220fdea2f
parent13ee0afae402e4ee802280055534ef0286f4eeed (diff)
downloadFreeBSD-src-b7884c70310a64bacbaf7365a031ec1310081f5c.zip
FreeBSD-src-b7884c70310a64bacbaf7365a031ec1310081f5c.tar.gz
Run a SFP probe, which in turn will run a PHY probe.
Fixes the detection of SFP modules inserted after the boot. Ticket #7763
-rw-r--r--sys/dev/ixgbe/if_ix.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ixgbe/if_ix.c b/sys/dev/ixgbe/if_ix.c
index f54dbf7..7fed368 100644
--- a/sys/dev/ixgbe/if_ix.c
+++ b/sys/dev/ixgbe/if_ix.c
@@ -1253,7 +1253,7 @@ ixgbe_init_locked(struct adapter *adapter)
* need to be kick-started
*/
if (hw->phy.type == ixgbe_phy_none) {
- err = hw->phy.ops.identify(hw);
+ err = hw->phy.ops.identify_sfp(hw);
if (err == IXGBE_ERR_SFP_NOT_SUPPORTED) {
device_printf(dev,
"Unsupported SFP+ module type was detected.\n");
@@ -3830,8 +3830,7 @@ ixgbe_handle_mod(void *context, int pending)
"Setup failure - unsupported SFP+ module type.\n");
goto out;
}
- if (hw->phy.multispeed_fiber)
- taskqueue_enqueue(adapter->tq, &adapter->msf_task);
+ taskqueue_enqueue(adapter->tq, &adapter->msf_task);
out:
/* Update media type */
switch (hw->mac.ops.get_media_type(hw)) {
OpenPOWER on IntegriCloud