| 958 | } |
| 959 | |
| 960 | static 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 | |
| 978 | static int |
| 979 | __fs_xstats_get_names(struct rte_eth_dev *dev, |
no test coverage detected