| 1546 | } |
| 1547 | |
| 1548 | static int |
| 1549 | ice_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 | |
| 1570 | static int ice_dcf_xstats_get_names(__rte_unused struct rte_eth_dev *dev, |
| 1571 | struct rte_eth_xstat_name *xstats_names, |
no test coverage detected