uint16_t i = 0;
int ret = 0, j, k;
- snprintf(bdr_str, MAX_STRING_LEN, " show - Port PMD %"PRIu64,
- rte_get_tsc_hz());
+ snprintf(bdr_str, MAX_STRING_LEN, " show - Port PMD ");
STATS_BDR_STR(10, bdr_str);
RTE_ETH_FOREACH_DEV(i) {
memset(&rss_conf, 0, sizeof(rss_conf));
- snprintf(bdr_str, MAX_STRING_LEN, " Port (%u)", i);
+ snprintf(bdr_str, MAX_STRING_LEN, " Port %u ", i);
STATS_BDR_STR(5, bdr_str);
printf(" - generic config\n");
}
#endif
}
-
- STATS_BDR_STR(50, "");
}
static void
unsigned int j, k;
uint16_t i = 0;
- snprintf(bdr_str, MAX_STRING_LEN, " show - TM PMD %"PRIu64,
- rte_get_tsc_hz());
+ snprintf(bdr_str, MAX_STRING_LEN, " show - TM PMD ");
STATS_BDR_STR(10, bdr_str);
RTE_ETH_FOREACH_DEV(i) {
stats.leaf.n_bytes_dropped[RTE_COLOR_RED]);
}
}
-
- STATS_BDR_STR(50, "");
}
static void
{
uint8_t crypto_dev_count = rte_cryptodev_count(), i;
- snprintf(bdr_str, MAX_STRING_LEN, " show - CRYPTO PMD %"PRIu64,
- rte_get_tsc_hz());
+ snprintf(bdr_str, MAX_STRING_LEN, " show - CRYPTO PMD ");
STATS_BDR_STR(10, bdr_str);
for (i = 0; i < crypto_dev_count; i++) {
stats.dequeue_err_count);
}
}
-
- STATS_BDR_STR(50, "");
}
static void
show_ring(char *name)
{
- snprintf(bdr_str, MAX_STRING_LEN, " show - RING %"PRIu64,
- rte_get_tsc_hz());
+ snprintf(bdr_str, MAX_STRING_LEN, " show - RING ");
STATS_BDR_STR(10, bdr_str);
if (name != NULL) {
}
rte_ring_list_dump(stdout);
- STATS_BDR_STR(50, "");
}
static void
{
uint64_t flags = 0;
- snprintf(bdr_str, MAX_STRING_LEN, " show - MEMPOOL %"PRIu64,
- rte_get_tsc_hz());
+ snprintf(bdr_str, MAX_STRING_LEN, " show - MEMPOOL ");
STATS_BDR_STR(10, bdr_str);
if (name != NULL) {
rte_mempool_avail_count(ptr),
rte_mempool_in_use_count(ptr));
- STATS_BDR_STR(50, "");
return;
}
}
rte_mempool_list_dump(stdout);
- STATS_BDR_STR(50, "");
}
static void
static void
iter_mempool(char *name)
{
- snprintf(bdr_str, MAX_STRING_LEN, " iter - MEMPOOL %"PRIu64,
- rte_get_tsc_hz());
+ snprintf(bdr_str, MAX_STRING_LEN, " iter - MEMPOOL ");
STATS_BDR_STR(10, bdr_str);
if (name != NULL) {
uint32_t ret = rte_mempool_obj_iter(ptr,
mempool_itr_obj, NULL);
printf("\n - iterated %u objects\n", ret);
- STATS_BDR_STR(50, "");
return;
}
}
-
- STATS_BDR_STR(50, "");
}
int
if (ret)
printf("Error from rte_eal_cleanup(), %d\n", ret);
- strlcpy(bdr_str, " ", MAX_STRING_LEN);
- STATS_BDR_STR(50, bdr_str);
-
return 0;
}