" --xstats-ids IDLIST: to display xstat values by id. "
"The argument is comma-separated list of xstat ids to print out.\n"
" --stats-reset: to reset port statistics\n"
" --xstats-ids IDLIST: to display xstat values by id. "
"The argument is comma-separated list of xstat ids to print out.\n"
" --stats-reset: to reset port statistics\n"
port_id, xstats_names, len, ids)) {
printf("Cannot get xstat names\n");
goto err;
port_id, xstats_names, len, ids)) {
printf("Cannot get xstat names\n");
goto err;
printf("###### NIC extended statistics for port %-2d #########\n",
port_id);
printf("%s############################\n", nic_stats_border);
printf("###### NIC extended statistics for port %-2d #########\n",
port_id);
printf("%s############################\n", nic_stats_border);
- ret = rte_eth_xstats_get(port_id, ids, values, len);
+ ret = rte_eth_xstats_get_by_id(port_id, ids, values, len);
- len = rte_eth_xstats_get_names(port_id, NULL, 0, NULL);
+ len = rte_eth_xstats_get_names_by_id(port_id, NULL, 0, NULL);
port_id, xstats_names, len, NULL)) {
printf("Cannot get xstat names\n");
goto err;
port_id, xstats_names, len, NULL)) {
printf("Cannot get xstat names\n");
goto err;
- ret = rte_eth_xstats_get(port_id, NULL, values, len);
+ ret = rte_eth_xstats_get_by_id(port_id, NULL, values, len);