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

Function idpf_dev_stats_reset

dpdk/drivers/net/idpf/idpf_ethdev.c:314–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314static int
315idpf_dev_stats_reset(struct rte_eth_dev *dev)
316{
317 struct idpf_vport *vport =
318 (struct idpf_vport *)dev->data->dev_private;
319 struct virtchnl2_vport_stats *pstats = NULL;
320 int ret;
321
322 ret = idpf_vc_stats_query(vport, &pstats);
323 if (ret != 0)
324 return ret;
325
326 /* set stats offset base on current values */
327 vport->eth_stats_offset = *pstats;
328
329 idpf_reset_mbuf_alloc_failed_stats(dev);
330
331 return 0;
332}
333
334static int idpf_dev_xstats_reset(struct rte_eth_dev *dev)
335{

Callers 2

idpf_dev_xstats_resetFunction · 0.85
idpf_dev_startFunction · 0.85

Calls 2

idpf_vc_stats_queryFunction · 0.85

Tested by

no test coverage detected