app/testpmd: fix RED byte stats
authorLeah Tekoa <leah@ethernitynet.com>
Thu, 25 Oct 2018 06:05:14 +0000 (06:05 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 5 Nov 2018 07:41:07 +0000 (08:41 +0100)
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 <leah@ethernitynet.com>
app/test-pmd/cmdline_mtr.c

index 32a4730..63f3282 100644 (file)
@@ -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",