]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_sched/rte_sched.h
sched: keep track of RED drops
[dpdk.git] / lib / librte_sched / rte_sched.h
index c0f4ad355e55355a515c18e5b99fc32e2fbfc137..e9c281726ab724f4f47dcaeb8d3b915a0c5f6381 100644 (file)
@@ -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 */