Fixes: e25e6c70fb56 ("app/testpmd: add --bitrate-stats option")

Signed-off-by: Pablo de Lara <pablo.de.lara.gua...@intel.com>
---
 app/test-pmd/testpmd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
index dfe6442..776b8dd 100644
--- a/app/test-pmd/testpmd.c
+++ b/app/test-pmd/testpmd.c
@@ -2239,7 +2239,9 @@ main(int argc, char** argv)
                          "core mask supplied in the command parameters\n");
 
        /* Bitrate stats disabled by default */
+#ifdef RTE_LIBRTE_BITRATE
        bitrate_enabled = 0;
+#endif
 
        argc -= diag;
        argv += diag;
-- 
2.7.4

Reply via email to