X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fevent%2Fsw%2Fsw_evdev_xstats.c;h=c2647d7da2f4613d56ffa2cc579b80be695792cf;hb=23d06e3766a82b97ff97bdd7021cbddc5e9ccc7e;hp=02f7874180bc1d4b06c61ee76c4826d195c1c267;hpb=4da2a5d55d5dfc228b985d4c98abc865d6ccda98;p=dpdk.git diff --git a/drivers/event/sw/sw_evdev_xstats.c b/drivers/event/sw/sw_evdev_xstats.c index 02f7874180..c2647d7da2 100644 --- a/drivers/event/sw/sw_evdev_xstats.c +++ b/drivers/event/sw/sw_evdev_xstats.c @@ -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 */