| 1533 | } |
| 1534 | |
| 1535 | static void |
| 1536 | show_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 | |
| 1580 | static void |
| 1581 | show_ring(char *name) |
no test coverage detected