From: Pablo de Lara Date: Wed, 3 May 2017 07:02:09 +0000 (+0100) Subject: app/testpmd: fix build without bitrate lib X-Git-Tag: spdx-start~3256 X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=30bcc68cc8803786901f0670edd7659c36775019 app/testpmd: fix build without bitrate lib Fixes: e25e6c70fb56 ("app/testpmd: add --bitrate-stats option") Signed-off-by: Pablo de Lara Acked-by: Remy Horton Acked-by: Jingjing Wu --- diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index cd1240b243..5c4d201e7b 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;