| 1361 | } |
| 1362 | |
| 1363 | int |
| 1364 | rte_vhost_crypto_driver_start(const char *path) |
| 1365 | { |
| 1366 | uint64_t protocol_features; |
| 1367 | int ret; |
| 1368 | |
| 1369 | ret = rte_vhost_driver_set_features(path, VIRTIO_CRYPTO_FEATURES); |
| 1370 | if (ret) |
| 1371 | return -1; |
| 1372 | |
| 1373 | ret = rte_vhost_driver_get_protocol_features(path, &protocol_features); |
| 1374 | if (ret) |
| 1375 | return -1; |
| 1376 | protocol_features |= (1ULL << VHOST_USER_PROTOCOL_F_CONFIG); |
| 1377 | ret = rte_vhost_driver_set_protocol_features(path, protocol_features); |
| 1378 | if (ret) |
| 1379 | return -1; |
| 1380 | |
| 1381 | return rte_vhost_driver_start(path); |
| 1382 | } |
| 1383 | |
| 1384 | int |
| 1385 | rte_vhost_crypto_create(int vid, uint8_t cryptodev_id, |
no test coverage detected