Lines Matching full:red

7 #include <net/red.h>
55 for (i = 0; i < qdisc->red.num_bands; i++) { in nfp_abm_stats_update_red()
57 &qdisc->red.band[i].stats); in nfp_abm_stats_update_red()
59 nfp_err(cpp, "RED stats (%d, %d) read failed with error %d\n", in nfp_abm_stats_update_red()
63 &qdisc->red.band[i].xstats); in nfp_abm_stats_update_red()
65 nfp_err(cpp, "RED xstats (%d, %d) read failed with error %d\n", in nfp_abm_stats_update_red()
131 for (i = 0; i < qdisc->red.num_bands; i++) { in nfp_abm_qdisc_offload_stop()
132 qdisc->red.band[i].stats.backlog_pkts = 0; in nfp_abm_qdisc_offload_stop()
133 qdisc->red.band[i].stats.backlog_bytes = 0; in nfp_abm_qdisc_offload_stop()
154 "RED stats init (%d, %d) failed with error %d\n", in __nfp_abm_stats_init()
162 "RED xstats init (%d, %d) failed with error %d\n", in __nfp_abm_stats_init()
179 for (i = 0; i < qdisc->red.num_bands; i++) { in nfp_abm_stats_init()
181 &qdisc->red.band[i].prev_stats, in nfp_abm_stats_init()
182 &qdisc->red.band[i].prev_xstats); in nfp_abm_stats_init()
219 qdisc->red.band[i].threshold); in nfp_abm_offload_compile_red()
220 act = qdisc->red.band[i].ecn ? in nfp_abm_offload_compile_red()
497 for (i = 0; i < qdisc->red.num_bands; i++) { in nfp_abm_gred_stats()
501 nfp_abm_stats_calculate(&qdisc->red.band[i].stats, in nfp_abm_gred_stats()
502 &qdisc->red.band[i].prev_stats, in nfp_abm_gred_stats()
504 qdisc->red.band[i].prev_stats = qdisc->red.band[i].stats; in nfp_abm_gred_stats()
506 nfp_abm_stats_red_calculate(&qdisc->red.band[i].xstats, in nfp_abm_gred_stats()
507 &qdisc->red.band[i].prev_xstats, in nfp_abm_gred_stats()
509 qdisc->red.band[i].prev_xstats = qdisc->red.band[i].xstats; in nfp_abm_gred_stats()
590 qdisc->red.num_bands = opt->set.dp_cnt; in nfp_abm_gred_replace()
591 for (i = 0; i < qdisc->red.num_bands; i++) { in nfp_abm_gred_replace()
592 qdisc->red.band[i].ecn = opt->set.tab[i].is_ecn; in nfp_abm_gred_replace()
593 qdisc->red.band[i].threshold = opt->set.tab[i].min; in nfp_abm_gred_replace()
630 nfp_abm_stats_red_calculate(&qdisc->red.band[0].xstats, in nfp_abm_red_xstats()
631 &qdisc->red.band[0].prev_xstats, in nfp_abm_red_xstats()
633 qdisc->red.band[0].prev_xstats = qdisc->red.band[0].xstats; in nfp_abm_red_xstats()
652 nfp_abm_stats_calculate(&qdisc->red.band[0].stats, in nfp_abm_red_stats()
653 &qdisc->red.band[0].prev_stats, in nfp_abm_red_stats()
655 qdisc->red.band[0].prev_stats = qdisc->red.band[0].stats; in nfp_abm_red_stats()
668 …nfp_warn(cpp, "RED offload failed - drop is not supported (ECN option required) (p:%08x h:%08x)\n", in nfp_abm_red_check_params()
673 nfp_warn(cpp, "RED offload failed - ECN marking not supported (p:%08x h:%08x)\n", in nfp_abm_red_check_params()
678 nfp_warn(cpp, "RED offload failed - harddrop is not supported (p:%08x h:%08x)\n", in nfp_abm_red_check_params()
683 nfp_warn(cpp, "RED offload failed - unsupported min/max parameters (p:%08x h:%08x)\n", in nfp_abm_red_check_params()
688 nfp_warn(cpp, "RED offload failed - threshold too large %d > %d (p:%08x h:%08x)\n", in nfp_abm_red_check_params()
724 qdisc->red.num_bands = 1; in nfp_abm_red_replace()
725 qdisc->red.band[0].ecn = opt->set.is_ecn; in nfp_abm_red_replace()
726 qdisc->red.band[0].threshold = opt->set.min; in nfp_abm_red_replace()
779 struct nfp_qdisc *qdisc, *red; in nfp_abm_mq_stats() local
800 red = qdisc->children[i]; in nfp_abm_mq_stats()
802 for (j = 0; j < red->red.num_bands; j++) { in nfp_abm_mq_stats()
804 &red->red.band[j].stats); in nfp_abm_mq_stats()
806 &red->red.band[j].prev_stats); in nfp_abm_mq_stats()