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

Function populate_active_devices

dpdk/app/test-bbdev/test_bbdev_perf.c:960–988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

958}
959
960static uint8_t
961populate_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
990static int
991read_test_vector(void)

Callers 2

testsuite_setupFunction · 0.85

Calls 4

rte_bbdev_info_getFunction · 0.85
check_dev_capFunction · 0.85
add_active_deviceFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected