src/dpdk/drivers/net/txgbe/base/txgbe_hw.c
static bool txgbe_need_crosstalk_fix(struct txgbe_hw *hw)
{
	/* Does FW say we need the fix */
	if (!hw->need_crosstalk_fix)
		return false;

	/* Only consider SFP+ PHYs i.e. media type fiber */
	switch (hw->phy.media_type) {
	case txgbe_media_type_fiber:
	case txgbe_media_type_fiber_qsfp:
		break;
	default:
		return false;
	}

	return true;
}
/**
 *  txgbe_need_crosstalk_fix - Determine if we need to do cross talk fix
 *  @hw: pointer to hardware structure
 *
 *  Contains the logic to identify if we need to verify link for the
 *  crosstalk fix
 **/
Determine if we need to do cross talk fix
@hw: pointer to hardware structure

Contains the logic to identify if we need to verify link for the
crosstalk fix
Determine if we need to do cross talk fix @hw : pointer to hardware structure Contains the logic to identify if we need to verify link for the crosstalk fix
static bool txgbe_need_crosstalk_fix(struct txgbe_hw *hw)
{
	if (!hw->need_crosstalk_fix)
		return false;
	switch (hw->phy.media_type) {
	case txgbe_media_type_fiber:
	case txgbe_media_type_fiber_qsfp:
		break;
	default:
		return false;
	}
	return true;
}
static bool txgbe_need_crosstalk_fix ( struct txgbe_hw * hw ) { if ( ! hw -> need_crosstalk_fix ) return false ; switch ( hw -> phy . media_type ) { case txgbe_media_type_fiber : case txgbe_media_type_fiber_qsfp : break ; default : return false ; } return true ; }
txgbe_need_crosstalk_fix - Determine if we need to do cross talk fix
  @hw: pointer to hardware structure
txgbe_need_crosstalk_fix - Determine if we need to do cross talk fix @hw : pointer to hardware structure
/* Does FW say we need the fix */ /* Only consider SFP+ PHYs i.e. media type fiber */