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

Function dsw_xstats_dev_get

dpdk/drivers/event/dsw/dsw_xstats.c:277–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277static int
278dsw_xstats_dev_get(const struct rte_eventdev *dev,
279 const uint64_t ids[], uint64_t values[], unsigned int n)
280{
281 struct dsw_evdev *dsw = dsw_pmd_priv(dev);
282 unsigned int i;
283
284 for (i = 0; i < n; i++) {
285 uint64_t id = ids[i];
286 struct dsw_xstat_dev *xstat = &dsw_dev_xstats[id];
287 values[i] = xstat->get_value_fn(dsw);
288 }
289 return n;
290}
291
292static int
293dsw_xstats_port_get(const struct rte_eventdev *dev, uint8_t port_id,

Callers 1

dsw_xstats_getFunction · 0.85

Calls 1

dsw_pmd_privFunction · 0.85

Tested by

no test coverage detected