app/testpmd: fix name of bitrate library in meson build
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 2 Sep 2020 16:24:27 +0000 (17:24 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:11 +0000 (18:55 +0200)
commit54f89e3df4b16e9079c9d343870d16757429b68b
treed8f7ae4e7129785724032986bcea31bc908423bd
parent69a0f8750aa349ed27fa7b635e2b47f74f11431a
app/testpmd: fix name of bitrate library in meson build

The bitrate library in DPDK is actually in a "bitratestats" directory,
so that is used by meson for the macro and library name.
Therefore, we need to update references to RTE_LIBRTE_BITRATE to
RTE_LIBRTE_BITRATESTATS in testpmd to have it found. Rather than
supporting both defines, since make is being removed, we can just
replace all instances of the former define with the latter.

To ensure testpmd links ok when this is done, we also need to add
bitratestats to the list of library dependencies.

Fixes: 5b9656b157d3 ("lib: build with meson")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Tested-by: Wei Ling <weix.ling@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/meson.build
app/test-pmd/parameters.c
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h