src/dpdk/drivers/net/ice/base/ice_sched.c
static enum ice_status
ice_sched_update_elem(struct ice_hw *hw, struct ice_sched_node *node,
		      struct ice_aqc_txsched_elem_data *info)
{
	struct ice_aqc_txsched_elem_data buf;
	enum ice_status status;
	u16 elem_cfgd = 0;
	u16 num_elems = 1;

	buf = *info;
	/* Parent TEID is reserved field in this aq call */
	buf.parent_teid = 0;
	/* Element type is reserved field in this aq call */
	buf.data.elem_type = 0;
	/* Flags is reserved field in this aq call */
	buf.data.flags = 0;

	/* Update HW DB */
	/* Configure element node */
	status = ice_aq_cfg_sched_elems(hw, num_elems, &buf, sizeof(buf),
					&elem_cfgd, NULL);
	if (status || elem_cfgd != num_elems) {
		ice_debug(hw, ICE_DBG_SCHED, "Config sched elem error\n");
		return ICE_ERR_CFG;
	}

	/* Config success case */
	/* Now update local SW DB */
	/* Only copy the data portion of info buffer */
	node->info.data = info->data;
	return status;
}
/**
 * ice_sched_update_elem - update element
 * @hw: pointer to the HW struct
 * @node: pointer to node
 * @info: node info to update
 *
 * Update the HW DB, and local SW DB of node. Update the scheduling
 * parameters of node from argument info data buffer (Info->data buf) and
 * returns success or error on config sched element failure. The caller
 * needs to hold scheduler lock.
 */
update element
@hw: pointer to the HW struct
@node: pointer to node
@info: node info to update

Update the HW DB, and local SW DB of node. Update the scheduling
parameters of node from argument info data buffer (Info->data buf) and
returns success or error on config sched element failure. The caller
needs to hold scheduler lock.
update element @hw : pointer to the HW struct @node : pointer to node @info : node info to update Update the HW DB and local SW DB of node . Update the scheduling parameters of node from argument info data buffer ( Info - > data buf ) and returns success or error on config sched element failure . The caller needs to hold scheduler lock .
static enum ice_status
ice_sched_update_elem(struct ice_hw *hw, struct ice_sched_node *node,
		      struct ice_aqc_txsched_elem_data *info)
{
	struct ice_aqc_txsched_elem_data buf;
	enum ice_status status;
	u16 elem_cfgd = 0;
	u16 num_elems = 1;
	buf = *info;
	buf.parent_teid = 0;
	buf.data.elem_type = 0;
	buf.data.flags = 0;
	status = ice_aq_cfg_sched_elems(hw, num_elems, &buf, sizeof(buf),
					&elem_cfgd, NULL);
	if (status || elem_cfgd != num_elems) {
		ice_debug(hw, ICE_DBG_SCHED, "Config sched elem error\n");
		return ICE_ERR_CFG;
	}
	node->info.data = info->data;
	return status;
}
static enum ice_status ice_sched_update_elem ( struct ice_hw * hw , struct ice_sched_node * node , struct ice_aqc_txsched_elem_data * info ) { struct ice_aqc_txsched_elem_data buf ; enum ice_status status ; u16 elem_cfgd = 0 ; u16 num_elems = 1 ; buf = * info ; buf . parent_teid = 0 ; buf . data . elem_type = 0 ; buf . data . flags = 0 ; status = ice_aq_cfg_sched_elems ( hw , num_elems , & buf , sizeof ( buf ) , & elem_cfgd , NULL ) ; if ( status || elem_cfgd != num_elems ) { ice_debug ( hw , ICE_DBG_SCHED , " \n " ) ; return ICE_ERR_CFG ; } node -> info . data = info -> data ; return status ; }
ice_sched_update_elem - update element
 @hw: pointer to the HW struct
 @node: pointer to node
 @info: node info to update
ice_sched_update_elem - update element @hw : pointer to the HW struct @node : pointer to node @info : node info to update
/* Parent TEID is reserved field in this aq call */ /* Element type is reserved field in this aq call */ /* Flags is reserved field in this aq call */ /* Update HW DB */ /* Configure element node */ /* Config success case */ /* Now update local SW DB */ /* Only copy the data portion of info buffer */