| 153 | } |
| 154 | |
| 155 | int |
| 156 | ml_test_device_close(struct ml_test *test, struct ml_options *opt) |
| 157 | { |
| 158 | struct test_common *t = ml_test_priv(test); |
| 159 | int ret = 0; |
| 160 | |
| 161 | RTE_SET_USED(t); |
| 162 | |
| 163 | /* close device */ |
| 164 | ret = rte_ml_dev_close(opt->dev_id); |
| 165 | if (ret != 0) |
| 166 | ml_err("Failed to close ML device, dev_id = %d\n", opt->dev_id); |
| 167 | |
| 168 | return ret; |
| 169 | } |
| 170 | |
| 171 | int |
| 172 | ml_test_device_start(struct ml_test *test, struct ml_options *opt) |
no test coverage detected