src/dpdk/drivers/net/igc/base/igc_mac.c
void igc_reset_adaptive_generic(struct igc_hw *hw)
{
	struct igc_mac_info *mac = &hw->mac;

	DEBUGFUNC("igc_reset_adaptive_generic");

	if (!mac->adaptive_ifs) {
		DEBUGOUT("Not in Adaptive IFS mode!\n");
		return;
	}

	mac->current_ifs_val = 0;
	mac->ifs_min_val = IFS_MIN;
	mac->ifs_max_val = IFS_MAX;
	mac->ifs_step_size = IFS_STEP;
	mac->ifs_ratio = IFS_RATIO;

	mac->in_ifs_mode = false;
	IGC_WRITE_REG(hw, IGC_AIT, 0);
}
/**
 *  igc_reset_adaptive_generic - Reset Adaptive Interframe Spacing
 *  @hw: pointer to the HW structure
 *
 *  Reset the Adaptive Interframe Spacing throttle to default values.
 **/
Reset Adaptive Interframe Spacing
@hw: pointer to the HW structure

Reset the Adaptive Interframe Spacing throttle to default values.
Reset Adaptive Interframe Spacing @hw : pointer to the HW structure Reset the Adaptive Interframe Spacing throttle to default values .
void igc_reset_adaptive_generic(struct igc_hw *hw)
{
	struct igc_mac_info *mac = &hw->mac;
	DEBUGFUNC("igc_reset_adaptive_generic");
	if (!mac->adaptive_ifs) {
		DEBUGOUT("Not in Adaptive IFS mode!\n");
		return;
	}
	mac->current_ifs_val = 0;
	mac->ifs_min_val = IFS_MIN;
	mac->ifs_max_val = IFS_MAX;
	mac->ifs_step_size = IFS_STEP;
	mac->ifs_ratio = IFS_RATIO;
	mac->in_ifs_mode = false;
	IGC_WRITE_REG(hw, IGC_AIT, 0);
}
void igc_reset_adaptive_generic ( struct igc_hw * hw ) { struct igc_mac_info * mac = & hw -> mac ; DEBUGFUNC ( " " ) ; if ( ! mac -> adaptive_ifs ) { DEBUGOUT ( " \n " ) ; return ; } mac -> current_ifs_val = 0 ; mac -> ifs_min_val = IFS_MIN ; mac -> ifs_max_val = IFS_MAX ; mac -> ifs_step_size = IFS_STEP ; mac -> ifs_ratio = IFS_RATIO ; mac -> in_ifs_mode = false ; IGC_WRITE_REG ( hw , IGC_AIT , 0 ) ; }
igc_reset_adaptive_generic - Reset Adaptive Interframe Spacing
  @hw: pointer to the HW structure
igc_reset_adaptive_generic - Reset Adaptive Interframe Spacing @hw : pointer to the HW structure