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

Function __fs_xstats_count

dpdk/drivers/net/failsafe/failsafe_ops.c:960–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

958}
959
960static int
961__fs_xstats_count(struct rte_eth_dev *dev)
962{
963 struct sub_device *sdev;
964 int count = 0;
965 uint8_t i;
966 int ret;
967
968 FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE) {
969 ret = rte_eth_xstats_get_names(PORT_ID(sdev), NULL, 0);
970 if (ret < 0)
971 return ret;
972 count += ret;
973 }
974
975 return count;
976}
977
978static int
979__fs_xstats_get_names(struct rte_eth_dev *dev,

Callers 2

__fs_xstats_get_namesFunction · 0.85
__fs_xstats_getFunction · 0.85

Calls 2

FOREACH_SUBDEV_STATEFunction · 0.85
rte_eth_xstats_get_namesFunction · 0.85

Tested by

no test coverage detected