TRACE(TRACE_ERROR,"WARNING! SFP on port %s is NOT registered in the DB (using default delta & alpha values). This may cause severe timing performance degradation!",p->name);
p->calib.sfp.delta_tx=0;
p->calib.sfp.delta_rx=0;
p->calib.sfp.alpha=DEFAULT_FIBER_ALPHA_COEF;
}
p->state=HAL_PORT_STATE_LINK_DOWN;
shw_sfp_set_tx_disable(p->hw_index,0);
}
}
staticvoidon_remove_sfp(hal_port_state_t*p)
{
handle_link_down(p,0);
p->state=HAL_PORT_STATE_DISABLED;
}
/* detects insertion/removal of SFP transceivers */