Lines Matching full:tab

53 	struct gred_sched_data *tab[MAX_DPs];  member
98 struct gred_sched_data *q = table->tab[i]; in gred_wred_mode_check()
105 if (table->tab[n] && table->tab[n]->prio == q->prio) in gred_wred_mode_check()
159 if (table->tab[i] && table->tab[i]->red_flags) in gred_per_vq_red_flags_used()
172 if (dp >= t->DPs || (q = t->tab[dp]) == NULL) { in gred_enqueue()
175 q = t->tab[dp]; in gred_enqueue()
198 if (t->tab[i] && t->tab[i]->prio < q->prio && in gred_enqueue()
199 !red_is_idling(&t->tab[i]->vars)) in gred_enqueue()
200 qavg += t->tab[i]->vars.qavg; in gred_enqueue()
271 if (dp >= t->DPs || (q = t->tab[dp]) == NULL) { in gred_dequeue()
300 struct gred_sched_data *q = t->tab[i]; in gred_reset()
332 struct gred_sched_data *q = table->tab[i]; in gred_offload()
336 opt.set.tab[i].present = true; in gred_offload()
337 opt.set.tab[i].limit = q->limit; in gred_offload()
338 opt.set.tab[i].prio = q->prio; in gred_offload()
339 opt.set.tab[i].min = q->parms.qth_min >> q->parms.Wlog; in gred_offload()
340 opt.set.tab[i].max = q->parms.qth_max >> q->parms.Wlog; in gred_offload()
341 opt.set.tab[i].is_ecn = gred_use_ecn(q); in gred_offload()
342 opt.set.tab[i].is_harddrop = gred_use_harddrop(q); in gred_offload()
343 opt.set.tab[i].probability = q->parms.max_P; in gred_offload()
344 opt.set.tab[i].backlog = &q->backlog; in gred_offload()
368 if (table->tab[i]) in gred_offload_dump_stats()
369 hw_stats->stats.xstats[i] = &table->tab[i]->stats; in gred_offload_dump_stats()
376 if (!table->tab[i]) in gred_offload_dump_stats()
378 table->tab[i]->packetsin += hw_stats->stats.bstats[i].packets; in gred_offload_dump_stats()
379 table->tab[i]->bytesin += hw_stats->stats.bstats[i].bytes; in gred_offload_dump_stats()
380 table->tab[i]->backlog += hw_stats->stats.qstats[i].backlog; in gred_offload_dump_stats()
457 if (table->tab[i]) in gred_change_table_def()
458 table->tab[i]->red_flags = in gred_change_table_def()
462 if (table->tab[i]) { in gred_change_table_def()
465 gred_destroy_vq(table->tab[i]); in gred_change_table_def()
466 table->tab[i] = NULL; in gred_change_table_def()
481 struct gred_sched_data *q = table->tab[dp]; in gred_change_vq()
489 table->tab[dp] = q = *prealloc; in gred_change_vq()
542 table->tab[dp]->red_flags = nla_get_u32(tb[TCA_GRED_VQ_FLAGS]); in gred_vq_apply()
581 if (dp != cdp && !table->tab[dp]) { in gred_vq_validate()
688 if (table->tab[table->def]) in gred_change()
689 def_prio = table->tab[table->def]->prio; in gred_change()
780 struct gred_sched_data *q = table->tab[i]; in gred_dump()
796 struct gred_sched_data *q = table->tab[i]; in gred_dump()
847 struct gred_sched_data *q = table->tab[i]; in gred_dump()
906 if (table->tab[i]) in gred_destroy()
907 gred_destroy_vq(table->tab[i]); in gred_destroy()