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

Function cpfl_dev_stats_reset

dpdk/drivers/net/cpfl/cpfl_ethdev.c:355–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355static int
356cpfl_dev_stats_reset(struct rte_eth_dev *dev)
357{
358 struct cpfl_vport *cpfl_vport = dev->data->dev_private;
359 struct idpf_vport *vport = &cpfl_vport->base;
360 struct virtchnl2_vport_stats *pstats = NULL;
361 int ret;
362
363 ret = idpf_vc_stats_query(vport, &pstats);
364 if (ret != 0)
365 return ret;
366
367 /* set stats offset base on current values */
368 vport->eth_stats_offset = *pstats;
369
370 cpfl_reset_mbuf_alloc_failed_stats(dev);
371
372 return 0;
373}
374
375static int cpfl_dev_xstats_reset(struct rte_eth_dev *dev)
376{

Callers 2

cpfl_dev_xstats_resetFunction · 0.85
cpfl_dev_startFunction · 0.85

Calls 2

idpf_vc_stats_queryFunction · 0.85

Tested by

no test coverage detected