Lines Matching refs:tbs
497 struct rtattr *tbs[TCA_STATS_MAX + 1]; in print_tcstats2_attr() local
499 parse_rtattr_nested(tbs, TCA_STATS_MAX, rta); in print_tcstats2_attr()
501 if (tbs[TCA_STATS_BASIC]) { in print_tcstats2_attr()
503 memcpy(&bs, RTA_DATA(tbs[TCA_STATS_BASIC]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_BASIC]), sizeof(bs))); in print_tcstats2_attr()
508 if (tbs[TCA_STATS_QUEUE]) { in print_tcstats2_attr()
510 memcpy(&q, RTA_DATA(tbs[TCA_STATS_QUEUE]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_QUEUE]), sizeof(q))); in print_tcstats2_attr()
515 if (tbs[TCA_STATS_RATE_EST]) { in print_tcstats2_attr()
517 …memcpy(&re, RTA_DATA(tbs[TCA_STATS_RATE_EST]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_RATE_EST]), sizeof(re… in print_tcstats2_attr()
522 if (tbs[TCA_STATS_QUEUE]) { in print_tcstats2_attr()
524 memcpy(&q, RTA_DATA(tbs[TCA_STATS_QUEUE]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_QUEUE]), sizeof(q))); in print_tcstats2_attr()
525 if (!tbs[TCA_STATS_RATE_EST]) in print_tcstats2_attr()
532 *xstats = tbs[TCA_STATS_APP] ? : NULL; in print_tcstats2_attr()