src/dpdk/drivers/net/igc/base/igc_mac.c
static s32 igc_validate_mdi_setting_generic(struct igc_hw *hw)
{
	DEBUGFUNC("igc_validate_mdi_setting_generic");

	if (!hw->mac.autoneg && (hw->phy.mdix == 0 || hw->phy.mdix == 3)) {
		DEBUGOUT("Invalid MDI setting detected\n");
		hw->phy.mdix = 1;
		return -IGC_ERR_CONFIG;
	}

	return IGC_SUCCESS;
}
/**
 *  igc_validate_mdi_setting_generic - Verify MDI/MDIx settings
 *  @hw: pointer to the HW structure
 *
 *  Verify that when not using auto-negotiation that MDI/MDIx is correctly
 *  set, which is forced to MDI mode only.
 **/
Verify MDI/MDIx settings
@hw: pointer to the HW structure

Verify that when not using auto-negotiation that MDI/MDIx is correctly
set, which is forced to MDI mode only.
Verify MDI / MDIx settings @hw : pointer to the HW structure Verify that when not using auto - negotiation that MDI / MDIx is correctly set which is forced to MDI mode only .
static s32 igc_validate_mdi_setting_generic(struct igc_hw *hw)
{
	DEBUGFUNC("igc_validate_mdi_setting_generic");
	if (!hw->mac.autoneg && (hw->phy.mdix == 0 || hw->phy.mdix == 3)) {
		DEBUGOUT("Invalid MDI setting detected\n");
		hw->phy.mdix = 1;
		return -IGC_ERR_CONFIG;
	}
	return IGC_SUCCESS;
}
static s32 igc_validate_mdi_setting_generic ( struct igc_hw * hw ) { DEBUGFUNC ( " " ) ; if ( ! hw -> mac . autoneg && ( hw -> phy . mdix == 0 || hw -> phy . mdix == 3 ) ) { DEBUGOUT ( " \n " ) ; hw -> phy . mdix = 1 ; return - IGC_ERR_CONFIG ; } return IGC_SUCCESS ; }
igc_validate_mdi_setting_generic - Verify MDI/MDIx settings
  @hw: pointer to the HW structure
igc_validate_mdi_setting_generic - Verify MDI / MDIx settings @hw : pointer to the HW structure