Searched refs:rtab (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/net/sched/ |
D | sch_api.c | 386 static __u8 __detect_linklayer(struct tc_ratespec *r, __u32 *rtab) in __detect_linklayer() argument 394 if ((r->rate > (100000000/8)) || (rtab[0] == 0)) { in __detect_linklayer() 400 && (rtab[cell_low] == rtab[cell_high])) { in __detect_linklayer() 402 cell_low, cell_high, rtab[cell_high]); in __detect_linklayer() 414 struct qdisc_rate_table *rtab; in qdisc_get_rtab() local 423 for (rtab = qdisc_rtab_list; rtab; rtab = rtab->next) { in qdisc_get_rtab() 424 if (!memcmp(&rtab->rate, r, sizeof(struct tc_ratespec)) && in qdisc_get_rtab() 425 !memcmp(&rtab->data, nla_data(tab), 1024)) { in qdisc_get_rtab() 426 rtab->refcnt++; in qdisc_get_rtab() 427 return rtab; in qdisc_get_rtab() [all …]
|
D | sch_cbq.c | 1403 struct qdisc_rate_table *rtab = NULL; in cbq_change_class() local 1429 rtab = qdisc_get_rtab(nla_data(tb[TCA_CBQ_RATE]), in cbq_change_class() 1431 if (rtab == NULL) in cbq_change_class() 1443 qdisc_put_rtab(rtab); in cbq_change_class() 1454 if (rtab) { in cbq_change_class() 1456 cl->R_tab = rtab; in cbq_change_class() 1486 rtab = qdisc_get_rtab(nla_data(tb[TCA_CBQ_RATE]), tb[TCA_CBQ_RTAB], in cbq_change_class() 1488 if (rtab == NULL) in cbq_change_class() 1549 cl->R_tab = rtab; in cbq_change_class() 1550 rtab = NULL; in cbq_change_class() [all …]
|
/linux-6.1.9/include/net/ |
D | sch_generic.h | 1184 static inline u32 qdisc_l2t(struct qdisc_rate_table* rtab, unsigned int pktlen) in qdisc_l2t() argument 1186 int slot = pktlen + rtab->rate.cell_align + rtab->rate.overhead; in qdisc_l2t() 1189 slot >>= rtab->rate.cell_log; in qdisc_l2t() 1191 return rtab->data[255]*(slot >> 8) + rtab->data[slot & 0xFF]; in qdisc_l2t() 1192 return rtab->data[slot]; in qdisc_l2t()
|