Lines Matching refs:tm_node
88 struct ixgbe_tm_node *tm_node; in ixgbe_tm_conf_uninit() local
91 while ((tm_node = TAILQ_FIRST(&tm_conf->queue_list))) { in ixgbe_tm_conf_uninit()
92 TAILQ_REMOVE(&tm_conf->queue_list, tm_node, node); in ixgbe_tm_conf_uninit()
93 rte_free(tm_node); in ixgbe_tm_conf_uninit()
96 while ((tm_node = TAILQ_FIRST(&tm_conf->tc_list))) { in ixgbe_tm_conf_uninit()
97 TAILQ_REMOVE(&tm_conf->tc_list, tm_node, node); in ixgbe_tm_conf_uninit()
98 rte_free(tm_node); in ixgbe_tm_conf_uninit()
339 struct ixgbe_tm_node *tm_node; in ixgbe_tm_node_search() local
346 TAILQ_FOREACH(tm_node, &tm_conf->tc_list, node) { in ixgbe_tm_node_search()
347 if (tm_node->id == node_id) { in ixgbe_tm_node_search()
349 return tm_node; in ixgbe_tm_node_search()
353 TAILQ_FOREACH(tm_node, &tm_conf->queue_list, node) { in ixgbe_tm_node_search()
354 if (tm_node->id == node_id) { in ixgbe_tm_node_search()
356 return tm_node; in ixgbe_tm_node_search()
569 struct ixgbe_tm_node *tm_node; in ixgbe_node_add() local
628 tm_node = rte_zmalloc("ixgbe_tm_node", in ixgbe_node_add()
631 if (!tm_node) in ixgbe_node_add()
633 tm_node->id = node_id; in ixgbe_node_add()
634 tm_node->priority = priority; in ixgbe_node_add()
635 tm_node->weight = weight; in ixgbe_node_add()
636 tm_node->reference_count = 0; in ixgbe_node_add()
637 tm_node->no = 0; in ixgbe_node_add()
638 tm_node->parent = NULL; in ixgbe_node_add()
639 tm_node->shaper_profile = shaper_profile; in ixgbe_node_add()
640 rte_memcpy(&tm_node->params, params, in ixgbe_node_add()
642 tm_conf->root = tm_node; in ixgbe_node_add()
710 tm_node = rte_zmalloc("ixgbe_tm_node", in ixgbe_node_add()
713 if (!tm_node) in ixgbe_node_add()
715 tm_node->id = node_id; in ixgbe_node_add()
716 tm_node->priority = priority; in ixgbe_node_add()
717 tm_node->weight = weight; in ixgbe_node_add()
718 tm_node->reference_count = 0; in ixgbe_node_add()
719 tm_node->parent = parent_node; in ixgbe_node_add()
720 tm_node->shaper_profile = shaper_profile; in ixgbe_node_add()
721 rte_memcpy(&tm_node->params, params, in ixgbe_node_add()
724 tm_node->no = parent_node->reference_count; in ixgbe_node_add()
726 tm_node, node); in ixgbe_node_add()
729 tm_node->no = q_base + parent_node->reference_count; in ixgbe_node_add()
731 tm_node, node); in ixgbe_node_add()
734 tm_node->parent->reference_count++; in ixgbe_node_add()
750 struct ixgbe_tm_node *tm_node; in ixgbe_node_delete() local
769 tm_node = ixgbe_tm_node_search(dev, node_id, &node_type); in ixgbe_node_delete()
770 if (!tm_node) { in ixgbe_node_delete()
777 if (tm_node->reference_count) { in ixgbe_node_delete()
786 if (tm_node->shaper_profile) in ixgbe_node_delete()
787 tm_node->shaper_profile->reference_count--; in ixgbe_node_delete()
788 rte_free(tm_node); in ixgbe_node_delete()
794 if (tm_node->shaper_profile) in ixgbe_node_delete()
795 tm_node->shaper_profile->reference_count--; in ixgbe_node_delete()
796 tm_node->parent->reference_count--; in ixgbe_node_delete()
798 TAILQ_REMOVE(&tm_conf->tc_list, tm_node, node); in ixgbe_node_delete()
801 TAILQ_REMOVE(&tm_conf->queue_list, tm_node, node); in ixgbe_node_delete()
804 rte_free(tm_node); in ixgbe_node_delete()
814 struct ixgbe_tm_node *tm_node; in ixgbe_node_type_get() local
826 tm_node = ixgbe_tm_node_search(dev, node_id, &node_type); in ixgbe_node_type_get()
827 if (!tm_node) { in ixgbe_node_type_get()
933 struct ixgbe_tm_node *tm_node; in ixgbe_node_capabilities_get() local
945 tm_node = ixgbe_tm_node_search(dev, node_id, &node_type); in ixgbe_node_capabilities_get()
946 if (!tm_node) { in ixgbe_node_capabilities_get()
994 struct ixgbe_tm_node *tm_node; in ixgbe_hierarchy_commit() local
1014 TAILQ_FOREACH(tm_node, &tm_conf->tc_list, node) { in ixgbe_hierarchy_commit()
1015 if (tm_node->shaper_profile && in ixgbe_hierarchy_commit()
1016 tm_node->shaper_profile->profile.peak.rate) { in ixgbe_hierarchy_commit()
1024 TAILQ_FOREACH(tm_node, &tm_conf->queue_list, node) { in ixgbe_hierarchy_commit()
1025 if (tm_node->shaper_profile) in ixgbe_hierarchy_commit()
1026 bw = tm_node->shaper_profile->profile.peak.rate; in ixgbe_hierarchy_commit()
1032 ret = ixgbe_set_queue_rate_limit(dev, tm_node->no, bw); in ixgbe_hierarchy_commit()