| 169 | } |
| 170 | |
| 171 | int |
| 172 | ml_test_device_start(struct ml_test *test, struct ml_options *opt) |
| 173 | { |
| 174 | struct test_common *t = ml_test_priv(test); |
| 175 | int ret; |
| 176 | |
| 177 | RTE_SET_USED(t); |
| 178 | |
| 179 | /* start device */ |
| 180 | ret = rte_ml_dev_start(opt->dev_id); |
| 181 | if (ret != 0) { |
| 182 | ml_err("Failed to start ml device, dev_id = %d\n", opt->dev_id); |
| 183 | return ret; |
| 184 | } |
| 185 | |
| 186 | return 0; |
| 187 | } |
| 188 | |
| 189 | int |
| 190 | ml_test_device_stop(struct ml_test *test, struct ml_options *opt) |
no test coverage detected