src/dpdk/drivers/net/ice/base/ice_sched.c
void ice_sched_cleanup_all(struct ice_hw *hw)
{
	if (!hw)
		return;

	if (hw->layer_info) {
		ice_free(hw, hw->layer_info);
		hw->layer_info = NULL;
	}

	ice_sched_clear_port(hw->port_info);

	hw->num_tx_sched_layers = 0;
	hw->num_tx_sched_phys_layers = 0;
	hw->flattened_layers = 0;
	hw->max_cgds = 0;
}
/**
 * ice_sched_cleanup_all - cleanup scheduler elements from SW DB for all ports
 * @hw: pointer to the HW struct
 *
 * Cleanup scheduling elements from SW DB for all the ports
 */
cleanup scheduler elements from SW DB for all ports
@hw: pointer to the HW struct

Cleanup scheduling elements from SW DB for all the ports
cleanup scheduler elements from SW DB for all ports @hw : pointer to the HW struct Cleanup scheduling elements from SW DB for all the ports
void ice_sched_cleanup_all(struct ice_hw *hw)
{
	if (!hw)
		return;
	if (hw->layer_info) {
		ice_free(hw, hw->layer_info);
		hw->layer_info = NULL;
	}
	ice_sched_clear_port(hw->port_info);
	hw->num_tx_sched_layers = 0;
	hw->num_tx_sched_phys_layers = 0;
	hw->flattened_layers = 0;
	hw->max_cgds = 0;
}
void ice_sched_cleanup_all ( struct ice_hw * hw ) { if ( ! hw ) return ; if ( hw -> layer_info ) { ice_free ( hw , hw -> layer_info ) ; hw -> layer_info = NULL ; } ice_sched_clear_port ( hw -> port_info ) ; hw -> num_tx_sched_layers = 0 ; hw -> num_tx_sched_phys_layers = 0 ; hw -> flattened_layers = 0 ; hw -> max_cgds = 0 ; }
ice_sched_cleanup_all - cleanup scheduler elements from SW DB for all ports
 @hw: pointer to the HW struct
ice_sched_cleanup_all - cleanup scheduler elements from SW DB for all ports @hw : pointer to the HW struct