X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_sched%2Frte_sched.h;h=e9c281726ab724f4f47dcaeb8d3b915a0c5f6381;hb=c3b047be7328c70e0542d40db15f847181208a22;hp=c0f4ad355e55355a515c18e5b99fc32e2fbfc137;hpb=9bd59925150a072036812d0bd6bb50a3bd22818f;p=dpdk.git diff --git a/lib/librte_sched/rte_sched.h b/lib/librte_sched/rte_sched.h index c0f4ad355e..e9c281726a 100644 --- a/lib/librte_sched/rte_sched.h +++ b/lib/librte_sched/rte_sched.h @@ -162,6 +162,11 @@ struct rte_sched_subport_stats { /**< Number of bytes successfully written for each traffic class */ uint32_t n_bytes_tc_dropped[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE]; /**< Number of bytes dropped for each traffic class */ + +#ifdef RTE_SCHED_RED + uint32_t n_pkts_red_dropped[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE]; + /**< Number of packets dropped by red */ +#endif }; /* @@ -196,6 +201,9 @@ struct rte_sched_queue_stats { /* Packets */ uint32_t n_pkts; /**< Packets successfully written */ uint32_t n_pkts_dropped; /**< Packets dropped */ +#ifdef RTE_SCHED_RED + uint32_t n_pkts_red_dropped; /**< Packets dropped by RED */ +#endif /* Bytes */ uint32_t n_bytes; /**< Bytes successfully written */