From: Leah Tekoa Date: Thu, 25 Oct 2018 06:05:14 +0000 (+0000) Subject: app/testpmd: fix RED byte stats X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=930a030d2afbd46b7a446305c9c9ae16a5a3b099;p=dpdk.git app/testpmd: fix RED byte stats Y stands for Yellow, R stands for Red. Fixes: 30ffb4e67ee3 ("app/testpmd: add commands traffic metering and policing") Cc: stable@dpdk.org Signed-off-by: Leah Tekoa --- diff --git a/app/test-pmd/cmdline_mtr.c b/app/test-pmd/cmdline_mtr.c index 32a47305f3..63f32828f3 100644 --- a/app/test-pmd/cmdline_mtr.c +++ b/app/test-pmd/cmdline_mtr.c @@ -1440,7 +1440,7 @@ static void cmd_show_port_meter_stats_parsed(void *parsed_result, printf("\tPkts R: %" PRIu64 "\n", stats.n_pkts[RTE_MTR_RED]); if (stats_mask & RTE_MTR_STATS_N_BYTES_RED) - printf("\tBytes Y: %" PRIu64 "\n", + printf("\tBytes R: %" PRIu64 "\n", stats.n_bytes[RTE_MTR_RED]); if (stats_mask & RTE_MTR_STATS_N_PKTS_DROPPED) printf("\tPkts DROPPED: %" PRIu64 "\n",