Skip to contentSkip to conversation

app/testpmd: remove unneeded dependency on meter

PATCH Applied David Marchand 3 participants 5 messages Nov 5, 2021 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 app/testpmd: remove unneeded dependency on meter

testpmd depends on ethdev, which itself depends on meter.
No need for an explicit dependency, since no testpmd code directly calls in the meter library.

---
 app/test-pmd/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
app/test-pmd/meson.build +1 -1
index b5a0f7b620..21d50e92d0 100644
@@ -28,7 +28,7 @@ sources = files(
         'util.c',
 )
 
-deps += ['ethdev', 'gro', 'gso', 'cmdline', 'metrics', 'meter', 'bus_pci']
+deps += ['ethdev', 'gro', 'gso', 'cmdline', 'metrics', 'bus_pci']
 if dpdk_conf.has('RTE_LIB_BITRATESTATS')
     deps += 'bitratestats'
 endif
Signature · 1 line
2.23.0
#1 lore raw

PATCH 2/2 app/testpmd: remove double dependency on bitrate

No need for double dependency, once is enough.
While at it, sort alphabetically.

---
 app/test-pmd/meson.build | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)
app/test-pmd/meson.build +8 -11
index 21d50e92d0..b05c531c7f 100644
@@ -29,20 +29,21 @@ sources = files(
 )
 
 deps += ['ethdev', 'gro', 'gso', 'cmdline', 'metrics', 'bus_pci']
-if dpdk_conf.has('RTE_LIB_BITRATESTATS')
-    deps += 'bitratestats'
-endif
-if dpdk_conf.has('RTE_LIB_PDUMP')
-    deps += 'pdump'
+if dpdk_conf.has('RTE_CRYPTO_SCHEDULER')
+    deps += 'crypto_scheduler'
 endif
 if dpdk_conf.has('RTE_LIB_BITRATESTATS')
     deps += 'bitratestats'
 endif
+if dpdk_conf.has('RTE_LIB_BPF')
+    sources += files('bpf_cmd.c')
+    deps += 'bpf'
+endif
 if dpdk_conf.has('RTE_LIB_LATENCYSTATS')
     deps += 'latencystats'
 endif
-if dpdk_conf.has('RTE_CRYPTO_SCHEDULER')
-    deps += 'crypto_scheduler'
+if dpdk_conf.has('RTE_LIB_PDUMP')
+    deps += 'pdump'
 endif
 if dpdk_conf.has('RTE_NET_BOND')
     deps += 'net_bond'
@@ -59,10 +60,6 @@ endif
 if dpdk_conf.has('RTE_NET_DPAA')
     deps += ['bus_dpaa', 'mempool_dpaa', 'net_dpaa']
 endif
-if dpdk_conf.has('RTE_LIB_BPF')
-    sources += files('bpf_cmd.c')
-    deps += 'bpf'
-endif
 jansson_dep = dependency('jansson', required: false, method: 'pkg-config')
 if jansson_dep.found()
     dpdk_conf.set('RTE_HAS_JANSSON', 1)
Signature · 1 line
2.23.0