src/dpdk/drivers/net/ice/base/ice_common.c
static enum ice_status
ice_replay_pre_init(struct ice_hw *hw, struct ice_switch_info *sw)
{
	enum ice_status status;
	u8 i;

	/* Delete old entries from replay filter list head if there is any */
	ice_rm_sw_replay_rule_info(hw, sw);
	/* In start of replay, move entries into replay_rules list, it
	 * will allow adding rules entries back to filt_rules list,
	 * which is operational list.
	 */
	for (i = 0; i < ICE_MAX_NUM_RECIPES; i++)
		LIST_REPLACE_INIT(&sw->recp_list[i].filt_rules,
				  &sw->recp_list[i].filt_replay_rules);
	ice_sched_replay_agg_vsi_preinit(hw);

	status = ice_sched_replay_root_node_bw(hw->port_info);
	if (status)
		return status;

	return ice_sched_replay_tc_node_bw(hw->port_info);
}
/**
 * ice_replay_pre_init - replay pre initialization
 * @hw: pointer to the HW struct
 * @sw: pointer to switch info struct for which function initializes filters
 *
 * Initializes required config data for VSI, FD, ACL, and RSS before replay.
 */
replay pre initialization
@hw: pointer to the HW struct
@sw: pointer to switch info struct for which function initializes filters

Initializes required config data for VSI, FD, ACL, and RSS before replay.
replay pre initialization @hw : pointer to the HW struct @sw : pointer to switch info struct for which function initializes filters Initializes required config data for VSI FD ACL and RSS before replay .
static enum ice_status
ice_replay_pre_init(struct ice_hw *hw, struct ice_switch_info *sw)
{
	enum ice_status status;
	u8 i;
	ice_rm_sw_replay_rule_info(hw, sw);
	for (i = 0; i < ICE_MAX_NUM_RECIPES; i++)
		LIST_REPLACE_INIT(&sw->recp_list[i].filt_rules,
				  &sw->recp_list[i].filt_replay_rules);
	ice_sched_replay_agg_vsi_preinit(hw);
	status = ice_sched_replay_root_node_bw(hw->port_info);
	if (status)
		return status;
	return ice_sched_replay_tc_node_bw(hw->port_info);
}
static enum ice_status ice_replay_pre_init ( struct ice_hw * hw , struct ice_switch_info * sw ) { enum ice_status status ; u8 i ; ice_rm_sw_replay_rule_info ( hw , sw ) ; for ( i = 0 ; i < ICE_MAX_NUM_RECIPES ; i ++ ) LIST_REPLACE_INIT ( & sw -> recp_list [ i ] . filt_rules , & sw -> recp_list [ i ] . filt_replay_rules ) ; ice_sched_replay_agg_vsi_preinit ( hw ) ; status = ice_sched_replay_root_node_bw ( hw -> port_info ) ; if ( status ) return status ; return ice_sched_replay_tc_node_bw ( hw -> port_info ) ; }
ice_replay_pre_init - replay pre initialization
 @hw: pointer to the HW struct
 @sw: pointer to switch info struct for which function initializes filters
ice_replay_pre_init - replay pre initialization @hw : pointer to the HW struct @sw : pointer to switch info struct for which function initializes filters
/* Delete old entries from replay filter list head if there is any */ /* In start of replay, move entries into replay_rules list, it
	 * will allow adding rules entries back to filt_rules list,
	 * which is operational list.
	 */