Searched refs:rtab (Results 1 – 4 of 4) sorted by relevance
/linux-2.4.37.9/net/sched/ |
D | sch_api.c | 242 struct qdisc_rate_table *rtab; in qdisc_get_rtab() local 244 for (rtab = qdisc_rtab_list; rtab; rtab = rtab->next) { in qdisc_get_rtab() 245 if (memcmp(&rtab->rate, r, sizeof(struct tc_ratespec)) == 0) { in qdisc_get_rtab() 246 rtab->refcnt++; in qdisc_get_rtab() 247 return rtab; in qdisc_get_rtab() 254 rtab = kmalloc(sizeof(*rtab), GFP_KERNEL); in qdisc_get_rtab() 255 if (rtab) { in qdisc_get_rtab() 256 rtab->rate = *r; in qdisc_get_rtab() 257 rtab->refcnt = 1; in qdisc_get_rtab() 258 memcpy(rtab->data, RTA_DATA(tab), 1024); in qdisc_get_rtab() [all …]
|
D | sch_tbf.c | 306 struct qdisc_rate_table *rtab = NULL; in tbf_change() local 317 rtab = qdisc_get_rtab(&qopt->rate, tb[TCA_TBF_RTAB-1]); in tbf_change() 318 if (rtab == NULL) in tbf_change() 329 if (rtab->data[n] > qopt->buffer) break; in tbf_change() 355 rtab = xchg(&q->R_tab, rtab); in tbf_change() 360 if (rtab) in tbf_change() 361 qdisc_put_rtab(rtab); in tbf_change()
|
D | sch_cbq.c | 1792 struct qdisc_rate_table *rtab = NULL; in cbq_change_class() local 1834 rtab = qdisc_get_rtab(RTA_DATA(tb[TCA_CBQ_RATE-1]), tb[TCA_CBQ_RTAB-1]); in cbq_change_class() 1835 if (rtab == NULL) in cbq_change_class() 1845 if (rtab) { in cbq_change_class() 1846 rtab = xchg(&cl->R_tab, rtab); in cbq_change_class() 1847 qdisc_put_rtab(rtab); in cbq_change_class() 1890 rtab = qdisc_get_rtab(RTA_DATA(tb[TCA_CBQ_RATE-1]), tb[TCA_CBQ_RTAB-1]); in cbq_change_class() 1891 if (rtab == NULL) in cbq_change_class() 1927 cl->R_tab = rtab; in cbq_change_class() 1928 rtab = NULL; in cbq_change_class() [all …]
|
D | sch_htb.c | 1503 struct qdisc_rate_table *rtab = NULL, *ctab = NULL; in htb_change_class() local 1517 rtab = qdisc_get_rtab(&hopt->rate, tb[TCA_HTB_RTAB-1]); in htb_change_class() 1519 if (!rtab || !ctab) goto failure; in htb_change_class() 1594 cl->un.leaf.quantum = rtab->rate.rate / q->rate2quantum; in htb_change_class() 1611 if (cl->rate) qdisc_put_rtab(cl->rate); cl->rate = rtab; in htb_change_class() 1619 if (rtab) qdisc_put_rtab(rtab); in htb_change_class()
|