Lines Matching refs:tbs
715 struct rtattr *tbs[TCA_STATS_MAX + 1]; in print_tcstats2_attr() local
717 parse_rtattr_nested(tbs, TCA_STATS_MAX, rta); in print_tcstats2_attr()
719 if (tbs[TCA_STATS_BASIC]) { in print_tcstats2_attr()
722 memcpy(&bs, RTA_DATA(tbs[TCA_STATS_BASIC]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_BASIC]), sizeof(bs))); in print_tcstats2_attr()
727 if (tbs[TCA_STATS_QUEUE]) { in print_tcstats2_attr()
730 memcpy(&q, RTA_DATA(tbs[TCA_STATS_QUEUE]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_QUEUE]), sizeof(q))); in print_tcstats2_attr()
735 if (tbs[TCA_STATS_RATE_EST64]) { in print_tcstats2_attr()
738 memcpy(&re, RTA_DATA(tbs[TCA_STATS_RATE_EST64]), in print_tcstats2_attr()
739 MIN(RTA_PAYLOAD(tbs[TCA_STATS_RATE_EST64]), in print_tcstats2_attr()
743 } else if (tbs[TCA_STATS_RATE_EST]) { in print_tcstats2_attr()
746 memcpy(&re, RTA_DATA(tbs[TCA_STATS_RATE_EST]), in print_tcstats2_attr()
747 MIN(RTA_PAYLOAD(tbs[TCA_STATS_RATE_EST]), sizeof(re))); in print_tcstats2_attr()
752 if (tbs[TCA_STATS_QUEUE]) { in print_tcstats2_attr()
755 memcpy(&q, RTA_DATA(tbs[TCA_STATS_QUEUE]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_QUEUE]), sizeof(q))); in print_tcstats2_attr()
756 if (!tbs[TCA_STATS_RATE_EST]) in print_tcstats2_attr()
763 *xstats = tbs[TCA_STATS_APP] ? : NULL; in print_tcstats2_attr()