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

Function show_crypto

dpdk/app/proc-info/main.c:1535–1578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1533}
1534
1535static void
1536show_crypto(void)
1537{
1538 uint8_t crypto_dev_count = rte_cryptodev_count(), i;
1539
1540 snprintf(bdr_str, MAX_STRING_LEN, " show - CRYPTO PMD ");
1541 STATS_BDR_STR(10, bdr_str);
1542
1543 for (i = 0; i < crypto_dev_count; i++) {
1544 struct rte_cryptodev_info dev_info;
1545 struct rte_cryptodev_stats stats;
1546
1547 rte_cryptodev_info_get(i, &dev_info);
1548
1549 printf(" - device (%u)\n", i);
1550 printf("\t -- name (%s)\n"
1551 "\t -- driver (%s)\n"
1552 "\t -- id (%u) on socket (%d)\n"
1553 "\t -- queue pairs (%d)\n",
1554 rte_cryptodev_name_get(i),
1555 dev_info.driver_name,
1556 dev_info.driver_id,
1557 rte_dev_numa_node(dev_info.device),
1558 rte_cryptodev_queue_pair_count(i));
1559
1560 display_crypto_feature_info(dev_info.feature_flags);
1561
1562 if (rte_cryptodev_stats_get(i, &stats) == 0) {
1563 printf("\t -- stats\n");
1564 printf("\t\t + enqueue count (%"PRIu64")"
1565 " error (%"PRIu64")\n",
1566 stats.enqueued_count,
1567 stats.enqueue_err_count);
1568 printf("\t\t + dequeue count (%"PRIu64")"
1569 " error (%"PRIu64")\n",
1570 stats.dequeued_count,
1571 stats.dequeue_err_count);
1572 }
1573
1574#ifdef RTE_LIB_SECURITY
1575 show_security_context(i, false);
1576#endif
1577 }
1578}
1579
1580static void
1581show_ring(char *name)

Callers 1

mainFunction · 0.85

Calls 10

rte_cryptodev_countFunction · 0.85
snprintfFunction · 0.85
rte_cryptodev_info_getFunction · 0.85
rte_cryptodev_name_getFunction · 0.85
rte_dev_numa_nodeFunction · 0.85
rte_cryptodev_stats_getFunction · 0.85
show_security_contextFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected