Searched refs:vport_node (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | qos.c | 335 static int esw_qos_vport_create_sched_element(struct mlx5_esw_sched_node *vport_node, in esw_qos_vport_create_sched_element() argument 339 struct mlx5_core_dev *dev = vport_node->esw->dev; in esw_qos_vport_create_sched_element() 350 MLX5_SET(vport_element, attr, vport_number, vport_node->vport->vport); in esw_qos_vport_create_sched_element() 351 MLX5_SET(scheduling_context, sched_ctx, parent_element_id, vport_node->parent->ix); in esw_qos_vport_create_sched_element() 352 MLX5_SET(scheduling_context, sched_ctx, max_average_bw, vport_node->max_rate); in esw_qos_vport_create_sched_element() 354 return esw_qos_node_create_sched_element(vport_node, sched_ctx, extack); in esw_qos_vport_create_sched_element() 542 struct mlx5_esw_sched_node *vport_node = vport->qos.sched_node; in esw_qos_vport_disable() local 543 struct mlx5_esw_sched_node *parent = vport_node->parent; in esw_qos_vport_disable() 545 esw_qos_node_destroy_sched_element(vport_node, extack); in esw_qos_vport_disable() 547 vport_node->bw_share = 0; in esw_qos_vport_disable() [all …]
|