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

Function sw_xstats_reset_range

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

Source from the content-addressed store, hash-verified

541}
542
543static void
544sw_xstats_reset_range(struct sw_evdev *sw, uint32_t start, uint32_t num)
545{
546 uint32_t i;
547 for (i = start; i < start + num; i++) {
548 struct sw_xstats_entry *xs = &sw->xstats[i];
549 if (!xs->reset_allowed)
550 continue;
551
552 uint64_t val = xs->fn(sw, xs->obj_idx, xs->stat, xs->extra_arg);
553 xs->reset_value = val;
554 }
555}
556
557static int
558sw_xstats_reset_queue(struct sw_evdev *sw, uint8_t queue_id,

Callers 3

sw_xstats_reset_queueFunction · 0.85
sw_xstats_reset_portFunction · 0.85
sw_xstats_reset_devFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected