src/dpdk/drivers/net/igc/base/igc_api.c
s32 igc_init_mac_params(struct igc_hw *hw)
{
	s32 ret_val = IGC_SUCCESS;

	if (hw->mac.ops.init_params) {
		ret_val = hw->mac.ops.init_params(hw);
		if (ret_val) {
			DEBUGOUT("MAC Initialization Error\n");
			goto out;
		}
	} else {
		DEBUGOUT("mac.init_mac_params was NULL\n");
		ret_val = -IGC_ERR_CONFIG;
	}

out:
	return ret_val;
}
/**
 *  igc_init_mac_params - Initialize MAC function pointers
 *  @hw: pointer to the HW structure
 *
 *  This function initializes the function pointers for the MAC
 *  set of functions.  Called by drivers or by igc_setup_init_funcs.
 **/
Initialize MAC function pointers
@hw: pointer to the HW structure

This function initializes the function pointers for the MAC
set of functions.  Called by drivers or by igc_setup_init_funcs.
Initialize MAC function pointers @hw : pointer to the HW structure This function initializes the function pointers for the MAC set of functions . Called by drivers or by igc_setup_init_funcs .
s32 igc_init_mac_params(struct igc_hw *hw)
{
	s32 ret_val = IGC_SUCCESS;
	if (hw->mac.ops.init_params) {
		ret_val = hw->mac.ops.init_params(hw);
		if (ret_val) {
			DEBUGOUT("MAC Initialization Error\n");
			goto out;
		}
	} else {
		DEBUGOUT("mac.init_mac_params was NULL\n");
		ret_val = -IGC_ERR_CONFIG;
	}
out:
	return ret_val;
}
s32 igc_init_mac_params ( struct igc_hw * hw ) { s32 ret_val = IGC_SUCCESS ; if ( hw -> mac . ops . init_params ) { ret_val = hw -> mac . ops . init_params ( hw ) ; if ( ret_val ) { DEBUGOUT ( " \n " ) ; goto out ; } } else { DEBUGOUT ( " \n " ) ; ret_val = - IGC_ERR_CONFIG ; } out : return ret_val ; }
igc_init_mac_params - Initialize MAC function pointers
  @hw: pointer to the HW structure
igc_init_mac_params - Initialize MAC function pointers @hw : pointer to the HW structure