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

Function rte_cryptodev_stop

dpdk/lib/cryptodev/rte_cryptodev.c:1307–1334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1305}
1306
1307void
1308rte_cryptodev_stop(uint8_t dev_id)
1309{
1310 struct rte_cryptodev *dev;
1311
1312 if (!rte_cryptodev_is_valid_dev(dev_id)) {
1313 CDEV_LOG_ERR("Invalid dev_id=%" PRIu8, dev_id);
1314 return;
1315 }
1316
1317 dev = &rte_crypto_devices[dev_id];
1318
1319 if (*dev->dev_ops->dev_stop == NULL)
1320 return;
1321
1322 if (dev->data->dev_started == 0) {
1323 CDEV_LOG_ERR("Device with dev_id=%" PRIu8 " already stopped",
1324 dev_id);
1325 return;
1326 }
1327
1328 /* point fast-path functions to dummy ones */
1329 cryptodev_fp_ops_reset(rte_crypto_fp_ops + dev_id);
1330
1331 (*dev->dev_ops->dev_stop)(dev);
1332 rte_cryptodev_trace_stop(dev_id);
1333 dev->data->dev_started = 0;
1334}
1335
1336int
1337rte_cryptodev_close(uint8_t dev_id)

Callers 15

scheduler_pmd_stopFunction · 0.85
mainFunction · 0.85
ut_teardown_asymFunction · 0.85
ut_teardownFunction · 0.85
test_device_reconfigureFunction · 0.85
test_enq_callback_setupFunction · 0.85
test_deq_callback_setupFunction · 0.85
test_crypto_adapter_stopFunction · 0.85

Calls 2

cryptodev_fp_ops_resetFunction · 0.85

Tested by 15

ut_teardown_asymFunction · 0.68
ut_teardownFunction · 0.68
test_device_reconfigureFunction · 0.68
test_enq_callback_setupFunction · 0.68
test_deq_callback_setupFunction · 0.68
test_crypto_adapter_stopFunction · 0.68
ut_teardown_ipsecFunction · 0.68