| 255 | #endif /* USE_JANSSON */ |
| 256 | |
| 257 | static int |
| 258 | parse_cryptodev_arg(char *arg) |
| 259 | { |
| 260 | int id = rte_cryptodev_get_dev_id(arg); |
| 261 | |
| 262 | if (id < 0) { |
| 263 | RTE_LOG(ERR, USER1, "Error %i: invalid cryptodev name %s\n", |
| 264 | id, arg); |
| 265 | return id; |
| 266 | } |
| 267 | |
| 268 | env.dev_id = (uint8_t)id; |
| 269 | |
| 270 | return 0; |
| 271 | } |
| 272 | |
| 273 | static int |
| 274 | parse_cryptodev_id_arg(char *arg) |
no test coverage detected