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

Function ice_dcf_stats_reset

dpdk/drivers/net/ice/ice_dcf_ethdev.c:1548–1568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1546}
1547
1548static int
1549ice_dcf_stats_reset(struct rte_eth_dev *dev)
1550{
1551 struct ice_dcf_adapter *ad = dev->data->dev_private;
1552 struct ice_dcf_hw *hw = &ad->real_hw;
1553 struct virtchnl_eth_stats pstats;
1554 int ret;
1555
1556 if (hw->resetting)
1557 return 0;
1558
1559 /* read stat values to clear hardware registers */
1560 ret = ice_dcf_query_stats(hw, &pstats);
1561 if (ret != 0)
1562 return ret;
1563
1564 /* set stats offset base on current values */
1565 hw->eth_stats_offset = pstats;
1566
1567 return 0;
1568}
1569
1570static int ice_dcf_xstats_get_names(__rte_unused struct rte_eth_dev *dev,
1571 struct rte_eth_xstat_name *xstats_names,

Callers 1

ice_dcf_dev_initFunction · 0.85

Calls 1

ice_dcf_query_statsFunction · 0.85

Tested by

no test coverage detected