Lines Matching defs:hc
2585 const struct smap *details, struct htb_class *hc)
2599 hc->max_rate = 0;
2600 hc->min_rate = 0;
2601 hc->burst = 0;
2602 hc->priority = 0;
2615 hc->max_rate = max_rate_s ? strtoull(max_rate_s, NULL, 10) / 8 : 0;
2616 if (!hc->max_rate) {
2621 hc->max_rate = netdev_features_to_bps(current,
2635 struct htb_class hc;
2637 htb_parse_qdisc_details__(netdev, details, &hc);
2638 error = htb_setup_class__(netdev, 0, 0, &hc);
2640 htb_install__(netdev, hc.max_rate);
2650 struct htb_class *hc, *next;
2652 HMAP_FOR_EACH_SAFE(hc, next, tc_queue.hmap_node, &htb->tc.queues) {
2653 hmap_remove(&htb->tc.queues, &hc->tc_queue.hmap_node);
2654 free(hc);
2673 struct htb_class hc;
2677 htb_parse_qdisc_details__(netdev, details, &hc);
2679 error = htb_setup_class__(netdev, 0, 0, &hc);
2681 htb_get__(netdev)->max_rate = hc.max_rate;
2697 const struct htb_class *hc = htb_class_cast__(queue);
2701 if (hc->max_rate > 0)
2703 8ULL * hc->max_rate);
2712 const struct smap *details, struct htb_class *hc)
2720 hc->max_rate = (max_rate_s
2724 hc->max_rate);
2731 const struct htb_class *hc)
2751 hcp->max_rate = hc->max_rate;
2758 struct htb_class hc;
2763 error = htb_parse_class_details__(netdev, details, &hc);
2768 error = htb_setup_class__(netdev, 0, 0, &hc);
2773 htb_update_queue__(netdev, queue_id, &hc);
2780 struct htb_class *hc = htb_class_cast__(queue);
2787 hmap_remove(&htb->tc.queues, &hc->tc_queue.hmap_node);
2788 free(hc);