| 958 | } |
| 959 | |
| 960 | static uint8_t |
| 961 | populate_active_devices(void) |
| 962 | { |
| 963 | int ret; |
| 964 | uint8_t dev_id; |
| 965 | uint8_t nb_devs_added = 0; |
| 966 | struct rte_bbdev_info info; |
| 967 | |
| 968 | RTE_BBDEV_FOREACH(dev_id) { |
| 969 | rte_bbdev_info_get(dev_id, &info); |
| 970 | |
| 971 | if (check_dev_cap(&info)) { |
| 972 | printf( |
| 973 | "Device %d (%s) does not support specified capabilities\n", |
| 974 | dev_id, info.dev_name); |
| 975 | continue; |
| 976 | } |
| 977 | |
| 978 | ret = add_active_device(dev_id, &info, &test_vector); |
| 979 | if (ret != 0) { |
| 980 | printf("Adding active bbdev %s skipped\n", |
| 981 | info.dev_name); |
| 982 | continue; |
| 983 | } |
| 984 | nb_devs_added++; |
| 985 | } |
| 986 | |
| 987 | return nb_devs_added; |
| 988 | } |
| 989 | |
| 990 | static int |
| 991 | read_test_vector(void) |
no test coverage detected