eventdev: make driver interface as internal
[dpdk.git] / drivers / event / sw / sw_evdev_xstats.c
index 02f7874..c2647d7 100644 (file)
@@ -17,6 +17,8 @@ enum xstats_type {
        /* device instance specific */
        no_iq_enq,
        no_cq_enq,
+       sched_last_iter_bitmask,
+       sched_progress_last_iter,
        /* port_specific */
        rx_used,
        rx_free,
@@ -57,6 +59,9 @@ get_dev_stat(const struct sw_evdev *sw, uint16_t obj_idx __rte_unused,
        case calls: return sw->sched_called;
        case no_iq_enq: return sw->sched_no_iq_enqueues;
        case no_cq_enq: return sw->sched_no_cq_enqueues;
+       case sched_last_iter_bitmask: return sw->sched_last_iter_bitmask;
+       case sched_progress_last_iter: return sw->sched_progress_last_iter;
+
        default: return -1;
        }
 }
@@ -177,9 +182,11 @@ sw_xstats_init(struct sw_evdev *sw)
         */
        static const char * const dev_stats[] = { "rx", "tx", "drop",
                        "sched_calls", "sched_no_iq_enq", "sched_no_cq_enq",
+                       "sched_last_iter_bitmask", "sched_progress_last_iter",
        };
        static const enum xstats_type dev_types[] = { rx, tx, dropped,
-                       calls, no_iq_enq, no_cq_enq,
+                       calls, no_iq_enq, no_cq_enq, sched_last_iter_bitmask,
+                       sched_progress_last_iter,
        };
        /* all device stats are allowed to be reset */