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

Function atl_dev_stats_reset

dpdk/drivers/net/atlantic/atl_ethdev.c:963–977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

961}
962
963static int
964atl_dev_stats_reset(struct rte_eth_dev *dev)
965{
966 struct atl_adapter *adapter = ATL_DEV_TO_ADAPTER(dev);
967 struct aq_hw_s *hw = &adapter->hw;
968
969 hw->aq_fw_ops->update_stats(hw);
970
971 /* Reset software totals */
972 memset(&hw->curr_stats, 0, sizeof(hw->curr_stats));
973
974 memset(&adapter->sw_stats, 0, sizeof(adapter->sw_stats));
975
976 return 0;
977}
978
979static int
980atl_dev_xstats_get_count(struct rte_eth_dev *dev)

Callers 1

eth_atl_dev_initFunction · 0.85

Calls 1

memsetFunction · 0.85

Tested by

no test coverage detected