From 89cb86aeb0262e17ee39c1d791effe9515bd0dc8 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 4 Oct 2022 18:44:36 +0200 Subject: build, vtysh: extract vtysh commands from .xref Rather than running selected source files through the preprocessor and a bunch of perl regex'ing to get the list of all DEFUNs, use the data collected in frr.xref. This not only eliminates issues we've been having with preprocessor failures due to nonexistent header files, but is also much faster. Where extract.pl would take 5s, this now finishes in 0.2s. And since this is a non-parallelizable build step towards the end of the build (dependent on a lot of other things being done already), the speedup is actually noticeable. Also files containing CLI no longer need to be listed in `vtysh_scan` since the .xref data covers everything. `#ifndef VTYSH_EXTRACT_PL` checks are equally obsolete. Signed-off-by: David Lamparter --- zebra/dpdk/zebra_dplane_dpdk_vty.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'zebra/dpdk') diff --git a/zebra/dpdk/zebra_dplane_dpdk_vty.c b/zebra/dpdk/zebra_dplane_dpdk_vty.c index 748bce9e3..d1814af3b 100644 --- a/zebra/dpdk/zebra_dplane_dpdk_vty.c +++ b/zebra/dpdk/zebra_dplane_dpdk_vty.c @@ -23,9 +23,7 @@ #include "lib/json.h" #include "zebra/dpdk/zebra_dplane_dpdk.h" -#ifndef VTYSH_EXTRACT_PL #include "zebra/dpdk/zebra_dplane_dpdk_vty_clippy.c" -#endif #define ZD_STR "Zebra dataplane information\n" #define ZD_DPDK_STR "DPDK offload information\n" -- cgit v1.2.3