Home | History | Annotate | Download | only in altqstat

Lines Matching defs:red_stats

53 	struct red_stats red_stats;
60 strlcpy(red_stats.iface.red_ifname, ifname,
61 sizeof(red_stats.iface.red_ifname));
68 if (ioctl(fd, RED_GETSTATS, &red_stats) < 0)
75 red_stats.weight, red_stats.inv_pmax,
76 red_stats.th_min, red_stats.th_max);
78 red_stats.q_len,
79 ((double)red_stats.q_avg)/(double)avg_scale,
80 red_stats.q_limit);
82 (ull)red_stats.xmit_cnt.packets,
83 (ull)red_stats.drop_cnt.packets,
84 red_stats.drop_forced, red_stats.drop_unforced);
85 if (red_stats.marked_packets != 0)
86 printf(" marked: %u\n", red_stats.marked_packets);
88 rate2str(calc_rate(red_stats.xmit_cnt.bytes,
90 if (red_stats.fv_alloc > 0) {
92 red_stats.fv_alloc, red_stats.fv_flows);
94 red_stats.fv_predrop, red_stats.fv_pass,
95 red_stats.fv_escape);
99 last_bytes = red_stats.xmit_cnt.bytes;