reqs was rejected by kernel due to possible API breakage.
(Logical change 1.91)
This commit is contained in:
parent
8789183ac4
commit
e914a5c41a
|
|
@ -38,7 +38,6 @@ struct tc_stats
|
||||||
__u32 pps; /* Current flow packet rate */
|
__u32 pps; /* Current flow packet rate */
|
||||||
__u32 qlen;
|
__u32 qlen;
|
||||||
__u32 backlog;
|
__u32 backlog;
|
||||||
__u32 reqs;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct tc_estimator
|
struct tc_estimator
|
||||||
|
|
|
||||||
|
|
@ -177,9 +177,9 @@ void print_tcstats_attr(FILE *fp, const struct rtattr *rta)
|
||||||
memset(&st, 0, sizeof(st));
|
memset(&st, 0, sizeof(st));
|
||||||
memcpy(&st, RTA_DATA(rta), MIN(RTA_PAYLOAD(rta), sizeof(st)));
|
memcpy(&st, RTA_DATA(rta), MIN(RTA_PAYLOAD(rta), sizeof(st)));
|
||||||
|
|
||||||
fprintf(fp, " Sent %llu bytes %u pkts (dropped %u, overlimits %u requeues %u) ",
|
fprintf(fp, " Sent %llu bytes %u pkts (dropped %u, overlimits %u) ",
|
||||||
(unsigned long long)st.bytes, st.packets, st.drops,
|
(unsigned long long)st.bytes, st.packets, st.drops,
|
||||||
st.overlimits, st.reqs);
|
st.overlimits);
|
||||||
|
|
||||||
if (st.bps || st.pps || st.qlen || st.backlog) {
|
if (st.bps || st.pps || st.qlen || st.backlog) {
|
||||||
fprintf(fp, "\n ");
|
fprintf(fp, "\n ");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue