src/dpdk/drivers/net/ice/base/ice_sched.c
void ice_sched_clear_port(struct ice_port_info *pi)
{
	if (!pi || pi->port_state != ICE_SCHED_PORT_STATE_READY)
		return;

	pi->port_state = ICE_SCHED_PORT_STATE_INIT;
	ice_acquire_lock(&pi->sched_lock);
	ice_sched_clear_tx_topo(pi);
	ice_release_lock(&pi->sched_lock);
	ice_destroy_lock(&pi->sched_lock);
}
/**
 * ice_sched_clear_port - clear the scheduler elements from SW DB for a port
 * @pi: port information structure
 *
 * Cleanup scheduling elements from SW DB
 */
clear the scheduler elements from SW DB for a port
@pi: port information structure

Cleanup scheduling elements from SW DB
clear the scheduler elements from SW DB for a port @pi : port information structure Cleanup scheduling elements from SW DB
void ice_sched_clear_port(struct ice_port_info *pi)
{
	if (!pi || pi->port_state != ICE_SCHED_PORT_STATE_READY)
		return;
	pi->port_state = ICE_SCHED_PORT_STATE_INIT;
	ice_acquire_lock(&pi->sched_lock);
	ice_sched_clear_tx_topo(pi);
	ice_release_lock(&pi->sched_lock);
	ice_destroy_lock(&pi->sched_lock);
}
void ice_sched_clear_port ( struct ice_port_info * pi ) { if ( ! pi || pi -> port_state != ICE_SCHED_PORT_STATE_READY ) return ; pi -> port_state = ICE_SCHED_PORT_STATE_INIT ; ice_acquire_lock ( & pi -> sched_lock ) ; ice_sched_clear_tx_topo ( pi ) ; ice_release_lock ( & pi -> sched_lock ) ; ice_destroy_lock ( & pi -> sched_lock ) ; }
ice_sched_clear_port - clear the scheduler elements from SW DB for a port
 @pi: port information structure
ice_sched_clear_port - clear the scheduler elements from SW DB for a port @pi : port information structure