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

	if (!pi)
		return ICE_ERR_PARAM;
	cmd = &desc.params.port_ets;
	ice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_query_port_ets);
	cmd->port_teid = pi->root->info.node_teid;

	status = ice_aq_send_cmd(pi->hw, &desc, buf, buf_size, cd);
	return status;
}
/**
 * ice_aq_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
 */
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
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
enum ice_status
ice_aq_query_port_ets(struct ice_port_info *pi,
		      struct ice_aqc_port_ets_elem *buf, u16 buf_size,
		      struct ice_sq_cd *cd)
{
	struct ice_aqc_query_port_ets *cmd;
	struct ice_aq_desc desc;
	enum ice_status status;
	if (!pi)
		return ICE_ERR_PARAM;
	cmd = &desc.params.port_ets;
	ice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_query_port_ets);
	cmd->port_teid = pi->root->info.node_teid;
	status = ice_aq_send_cmd(pi->hw, &desc, buf, buf_size, cd);
	return status;
}
enum ice_status ice_aq_query_port_ets ( struct ice_port_info * pi , struct ice_aqc_port_ets_elem * buf , u16 buf_size , struct ice_sq_cd * cd ) { struct ice_aqc_query_port_ets * cmd ; struct ice_aq_desc desc ; enum ice_status status ; if ( ! pi ) return ICE_ERR_PARAM ; cmd = & desc . params . port_ets ; ice_fill_dflt_direct_cmd_desc ( & desc , ice_aqc_opc_query_port_ets ) ; cmd -> port_teid = pi -> root -> info . node_teid ; status = ice_aq_send_cmd ( pi -> hw , & desc , buf , buf_size , cd ) ; return status ; }
ice_aq_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_aq_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