MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_vhost_crypto_driver_start

Function rte_vhost_crypto_driver_start

dpdk/lib/vhost/vhost_crypto.c:1363–1382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1361}
1362
1363int
1364rte_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
1384int
1385rte_vhost_crypto_create(int vid, uint8_t cryptodev_id,

Callers 1

mainFunction · 0.85

Tested by

no test coverage detected