Searched refs:tab (Results 1 – 4 of 4) sorted by relevance
54 struct gred_sched_data *tab[MAX_DPs]; member99 struct gred_sched_data *q = table->tab[i]; in gred_wred_mode_check()106 if (table->tab[n] && table->tab[n]->prio == q->prio) in gred_wred_mode_check()159 if (dp >= t->DPs || (q = t->tab[dp]) == NULL) { in gred_enqueue()162 q = t->tab[dp]; in gred_enqueue()184 if (t->tab[i] && t->tab[i]->prio < q->prio && in gred_enqueue()185 !red_is_idling(&t->tab[i]->vars)) in gred_enqueue()186 qavg += t->tab[i]->vars.qavg; in gred_enqueue()257 if (dp >= t->DPs || (q = t->tab[dp]) == NULL) { in gred_dequeue()289 if (dp >= t->DPs || (q = t->tab[dp]) == NULL) { in gred_drop()[all …]
76 struct sk_buff **tab; member104 } while (q->tab[q->head] == NULL); in choke_zap_head_holes()114 } while (q->tab[q->tail] == NULL); in choke_zap_tail_holes()121 struct sk_buff *skb = q->tab[idx]; in choke_drop_by_idx()123 q->tab[idx] = NULL; in choke_drop_by_idx()242 skb = q->tab[*pidx]; in choke_peek_random()247 return q->tab[*pidx = q->head]; in choke_peek_random()332 q->tab[q->tail] = skb; in choke_enqueue()364 skb = q->tab[q->head]; in choke_dequeue()365 q->tab[q->head] = NULL; in choke_dequeue()[all …]
386 struct qdisc_rate_table *qdisc_get_rtab(struct tc_ratespec *r, struct nlattr *tab) in qdisc_get_rtab() argument390 if (tab == NULL || r->rate == 0 || r->cell_log == 0 || in qdisc_get_rtab()391 nla_len(tab) != TC_RTAB_SIZE) in qdisc_get_rtab()396 !memcmp(&rtab->data, nla_data(tab), 1024)) { in qdisc_get_rtab()406 memcpy(rtab->data, nla_data(tab), 1024); in qdisc_get_rtab()416 void qdisc_put_rtab(struct qdisc_rate_table *tab) in qdisc_put_rtab() argument420 if (!tab || --tab->refcnt) in qdisc_put_rtab()426 if (rtab == tab) { in qdisc_put_rtab()449 u16 *tab = NULL; in qdisc_get_stab() local463 tab = nla_data(tb[TCA_STAB_DATA]); in qdisc_get_stab()[all …]
121 struct rtnl_link *tab; in rtnl_get_doit() local124 tab = rtnl_msg_handlers[protocol]; in rtnl_get_doit()126 tab = NULL; in rtnl_get_doit()128 if (tab == NULL || tab[msgindex].doit == NULL) in rtnl_get_doit()129 tab = rtnl_msg_handlers[PF_UNSPEC]; in rtnl_get_doit()131 return tab[msgindex].doit; in rtnl_get_doit()136 struct rtnl_link *tab; in rtnl_get_dumpit() local139 tab = rtnl_msg_handlers[protocol]; in rtnl_get_dumpit()141 tab = NULL; in rtnl_get_dumpit()143 if (tab == NULL || tab[msgindex].dumpit == NULL) in rtnl_get_dumpit()[all …]