| 1069 | } |
| 1070 | |
| 1071 | static void |
| 1072 | ut_teardown(void) |
| 1073 | { |
| 1074 | uint8_t i, dev_id, ret; |
| 1075 | struct rte_bbdev_stats stats; |
| 1076 | |
| 1077 | for (i = 0; i < nb_active_devs; i++) { |
| 1078 | dev_id = active_devs[i].dev_id; |
| 1079 | /* read stats and print */ |
| 1080 | ret = rte_bbdev_stats_get(dev_id, &stats); |
| 1081 | if (ret != 0) |
| 1082 | printf("Failed to get stats on bbdev %u\n", dev_id); |
| 1083 | /* Stop the device */ |
| 1084 | rte_bbdev_stop(dev_id); |
| 1085 | } |
| 1086 | } |
| 1087 | |
| 1088 | static int |
| 1089 | init_op_data_objs(struct rte_bbdev_op_data *bufs, |
nothing calls this directly
no test coverage detected