Searched refs:rtab (Results 1 – 3 of 3) sorted by relevance
399 && (rtab[cell_low] == rtab[cell_high])) { in __detect_linklayer()422 for (rtab = qdisc_rtab_list; rtab; rtab = rtab->next) { in qdisc_get_rtab()425 rtab->refcnt++; in qdisc_get_rtab()426 return rtab; in qdisc_get_rtab()430 rtab = kmalloc(sizeof(*rtab), GFP_KERNEL); in qdisc_get_rtab()431 if (rtab) { in qdisc_get_rtab()432 rtab->rate = *r; in qdisc_get_rtab()433 rtab->refcnt = 1; in qdisc_get_rtab()442 return rtab; in qdisc_get_rtab()456 if (rtab == tab) { in qdisc_put_rtab()[all …]
1484 struct qdisc_rate_table *rtab = NULL; in cbq_change_class() local1510 rtab = qdisc_get_rtab(nla_data(tb[TCA_CBQ_RATE]), in cbq_change_class()1512 if (rtab == NULL) in cbq_change_class()1524 qdisc_put_rtab(rtab); in cbq_change_class()1535 if (rtab) { in cbq_change_class()1537 cl->R_tab = rtab; in cbq_change_class()1567 rtab = qdisc_get_rtab(nla_data(tb[TCA_CBQ_RATE]), tb[TCA_CBQ_RTAB], in cbq_change_class()1569 if (rtab == NULL) in cbq_change_class()1630 cl->R_tab = rtab; in cbq_change_class()1631 rtab = NULL; in cbq_change_class()[all …]
1232 static inline u32 qdisc_l2t(struct qdisc_rate_table* rtab, unsigned int pktlen) in qdisc_l2t() argument1234 int slot = pktlen + rtab->rate.cell_align + rtab->rate.overhead; in qdisc_l2t()1237 slot >>= rtab->rate.cell_log; in qdisc_l2t()1239 return rtab->data[255]*(slot >> 8) + rtab->data[slot & 0xFF]; in qdisc_l2t()1240 return rtab->data[slot]; in qdisc_l2t()
Completed in 25 milliseconds