src/dpdk/drivers/net/ice/base/ice_dcb.c
enum ice_status
ice_query_port_ets(struct ice_port_info *pi,
		   struct ice_aqc_port_ets_elem *buf, u16 buf_size,
		   struct ice_sq_cd *cd)
{
	enum ice_status status;

	ice_acquire_lock(&pi->sched_lock);
	status = ice_aq_query_port_ets(pi, buf, buf_size, cd);
	if (!status)
		status = ice_update_port_tc_tree_cfg(pi, buf);
	ice_release_lock(&pi->sched_lock);
	return status;
}
/**
 * ice_query_port_ets - query port ETS configuration
 * @pi: port information structure
 * @buf: pointer to buffer
 * @buf_size: buffer size in bytes
 * @cd: pointer to command details structure or NULL
 *
 * query current port ETS configuration and update the
 * SW DB with the TC changes
 */
query port ETS configuration
@pi: port information structure
@buf: pointer to buffer
@buf_size: buffer size in bytes
@cd: pointer to command details structure or NULL

query current port ETS configuration and update the
SW DB with the TC changes
query port ETS configuration @pi : port information structure @buf : pointer to buffer @buf_size : buffer size in bytes @cd : pointer to command details structure or NULL query current port ETS configuration and update the SW DB with the TC changes
enum ice_status
ice_query_port_ets(struct ice_port_info *pi,
		   struct ice_aqc_port_ets_elem *buf, u16 buf_size,
		   struct ice_sq_cd *cd)
{
	enum ice_status status;
	ice_acquire_lock(&pi->sched_lock);
	status = ice_aq_query_port_ets(pi, buf, buf_size, cd);
	if (!status)
		status = ice_update_port_tc_tree_cfg(pi, buf);
	ice_release_lock(&pi->sched_lock);
	return status;
}
enum ice_status ice_query_port_ets ( struct ice_port_info * pi , struct ice_aqc_port_ets_elem * buf , u16 buf_size , struct ice_sq_cd * cd ) { enum ice_status status ; ice_acquire_lock ( & pi -> sched_lock ) ; status = ice_aq_query_port_ets ( pi , buf , buf_size , cd ) ; if ( ! status ) status = ice_update_port_tc_tree_cfg ( pi , buf ) ; ice_release_lock ( & pi -> sched_lock ) ; return status ; }
ice_query_port_ets - query port ETS configuration
 @pi: port information structure
 @buf: pointer to buffer
 @buf_size: buffer size in bytes
 @cd: pointer to command details structure or NULL
ice_query_port_ets - query port ETS configuration @pi : port information structure @buf : pointer to buffer @buf_size : buffer size in bytes @cd : pointer to command details structure or NULL