MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sw_xstats_reset_dev

Function sw_xstats_reset_dev

dpdk/drivers/event/sw/sw_evdev_xstats.c:599–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597}
598
599static int
600sw_xstats_reset_dev(struct sw_evdev *sw, const uint64_t ids[], uint32_t nb_ids)
601{
602 uint32_t i;
603 if (ids) {
604 for (i = 0; i < nb_ids; i++) {
605 uint64_t id = ids[i];
606 if (id >= sw->xstats_count_mode_dev)
607 return -EINVAL;
608 sw_xstats_reset_range(sw, id, 1);
609 }
610 } else {
611 for (i = 0; i < sw->xstats_count_mode_dev; i++)
612 sw_xstats_reset_range(sw, i, 1);
613 }
614
615 return 0;
616}
617
618int
619sw_xstats_reset(struct rte_eventdev *dev,

Callers 1

sw_xstats_resetFunction · 0.85

Calls 1

sw_xstats_reset_rangeFunction · 0.85

Tested by

no test coverage detected