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

Function rte_cryptodev_info_get

dpdk/lib/cryptodev/rte_cryptodev.c:1824–1847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1822}
1823
1824void
1825rte_cryptodev_info_get(uint8_t dev_id, struct rte_cryptodev_info *dev_info)
1826{
1827 struct rte_cryptodev *dev;
1828
1829 if (!rte_cryptodev_is_valid_dev(dev_id)) {
1830 CDEV_LOG_ERR("Invalid dev_id=%d", dev_id);
1831 return;
1832 }
1833
1834 dev = &rte_crypto_devices[dev_id];
1835
1836 memset(dev_info, 0, sizeof(struct rte_cryptodev_info));
1837
1838 if (*dev->dev_ops->dev_infos_get == NULL)
1839 return;
1840 (*dev->dev_ops->dev_infos_get)(dev, dev_info);
1841
1842 dev_info->driver_name = dev->device->driver->name;
1843 dev_info->device = dev->device;
1844
1845 rte_cryptodev_trace_info_get(dev_id, dev_info->driver_name);
1846
1847}
1848
1849int
1850rte_cryptodev_callback_register(uint8_t dev_id,

Calls 2

memsetFunction · 0.85

Tested by 15

cperf_verify_test_runnerFunction · 0.68
test_rsa_sign_verifyFunction · 0.68
test_rsa_enc_decFunction · 0.68
test_rsa_sign_verify_crtFunction · 0.68
test_rsa_enc_dec_crtFunction · 0.68
testsuite_setupFunction · 0.68
test_capabilityFunction · 0.68
test_ecdsa_sign_verifyFunction · 0.68
test_ecpmFunction · 0.68