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

Function rte_cryptodev_stats_reset

dpdk/lib/cryptodev/rte_cryptodev.c:1805–1822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1803}
1804
1805void
1806rte_cryptodev_stats_reset(uint8_t dev_id)
1807{
1808 struct rte_cryptodev *dev;
1809
1810 rte_cryptodev_trace_stats_reset(dev_id);
1811
1812 if (!rte_cryptodev_is_valid_dev(dev_id)) {
1813 CDEV_LOG_ERR("Invalid dev_id=%" PRIu8, dev_id);
1814 return;
1815 }
1816
1817 dev = &rte_crypto_devices[dev_id];
1818
1819 if (*dev->dev_ops->stats_reset == NULL)
1820 return;
1821 (*dev->dev_ops->stats_reset)(dev);
1822}
1823
1824void
1825rte_cryptodev_info_get(uint8_t dev_id, struct rte_cryptodev_info *dev_info)

Callers 3

dev_configure_and_startFunction · 0.85
test_statsFunction · 0.85
dev_configure_and_startFunction · 0.85

Calls 1

Tested by 3

dev_configure_and_startFunction · 0.68
test_statsFunction · 0.68
dev_configure_and_startFunction · 0.68