app/testpmd: fix build without bitrate lib
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 3 May 2017 07:02:09 +0000 (08:02 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 6 May 2017 08:00:38 +0000 (10:00 +0200)
Fixes: e25e6c70fb56 ("app/testpmd: add --bitrate-stats option")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Remy Horton <remy.horton@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
app/test-pmd/testpmd.c

index cd1240b..5c4d201 100644 (file)
@@ -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;