Home
last modified time | relevance | path

Searched refs:rtab (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/net/sched/
Dsch_api.c385 static __u8 __detect_linklayer(struct tc_ratespec *r, __u32 *rtab) in __detect_linklayer() argument
393 if ((r->rate > (100000000/8)) || (rtab[0] == 0)) { in __detect_linklayer()
399 && (rtab[cell_low] == rtab[cell_high])) { in __detect_linklayer()
401 cell_low, cell_high, rtab[cell_high]); in __detect_linklayer()
413 struct qdisc_rate_table *rtab; in qdisc_get_rtab() local
422 for (rtab = qdisc_rtab_list; rtab; rtab = rtab->next) { in qdisc_get_rtab()
423 if (!memcmp(&rtab->rate, r, sizeof(struct tc_ratespec)) && in qdisc_get_rtab()
424 !memcmp(&rtab->data, nla_data(tab), 1024)) { in qdisc_get_rtab()
425 rtab->refcnt++; in qdisc_get_rtab()
426 return rtab; in qdisc_get_rtab()
[all …]
Dsch_cbq.c1486 struct qdisc_rate_table *rtab = NULL; in cbq_change_class() local
1512 rtab = qdisc_get_rtab(nla_data(tb[TCA_CBQ_RATE]), in cbq_change_class()
1514 if (rtab == NULL) in cbq_change_class()
1526 qdisc_put_rtab(rtab); in cbq_change_class()
1537 if (rtab) { in cbq_change_class()
1539 cl->R_tab = rtab; in cbq_change_class()
1569 rtab = qdisc_get_rtab(nla_data(tb[TCA_CBQ_RATE]), tb[TCA_CBQ_RTAB], in cbq_change_class()
1571 if (rtab == NULL) in cbq_change_class()
1633 cl->R_tab = rtab; in cbq_change_class()
1634 rtab = NULL; in cbq_change_class()
[all …]
/kernel/linux/linux-5.10/include/net/
Dsch_generic.h1249 static inline u32 qdisc_l2t(struct qdisc_rate_table* rtab, unsigned int pktlen) in qdisc_l2t() argument
1251 int slot = pktlen + rtab->rate.cell_align + rtab->rate.overhead; in qdisc_l2t()
1254 slot >>= rtab->rate.cell_log; in qdisc_l2t()
1256 return rtab->data[255]*(slot >> 8) + rtab->data[slot & 0xFF]; in qdisc_l2t()
1257 return rtab->data[slot]; in qdisc_l2t()