| 187 | } |
| 188 | |
| 189 | int |
| 190 | ml_test_device_stop(struct ml_test *test, struct ml_options *opt) |
| 191 | { |
| 192 | struct test_common *t = ml_test_priv(test); |
| 193 | int ret = 0; |
| 194 | |
| 195 | RTE_SET_USED(t); |
| 196 | |
| 197 | /* stop device */ |
| 198 | ret = rte_ml_dev_stop(opt->dev_id); |
| 199 | if (ret != 0) |
| 200 | ml_err("Failed to stop ML device, dev_id = %d\n", opt->dev_id); |
| 201 | |
| 202 | return ret; |
| 203 | } |
no test coverage detected