diff options
author | Dave Barach <dave@barachs.net> | 2020-05-26 11:19:28 -0400 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2020-05-27 20:53:57 +0000 |
commit | 7f475bf4b77ae2e74d65c62a22dc550329bb59c1 (patch) | |
tree | c93fe64b721ff42cedc10bab9335c7776b7f65a3 /src/vpp/vnet | |
parent | ec3a3f16e4cd3b33e2a409fb01b8d8826e05f9fa (diff) |
dhcp: vat support for the dhcp_client_dump API
Also: permanently solve ordering issues with the vpp builtin vat
plugin loader, by explicitly loading vat plugins once we're sure that
all data plane plugins have registered their APIs / API message
handlers.
Fix compilation / link errors when the vpp builtin vat plugin loader
is disbled by cmake configuration.
Type: fix
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: Id553c63ae860ebfc196c5ad4b55c19e08fec2c9e
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/vpp/vnet')
-rw-r--r-- | src/vpp/vnet/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vpp/vnet/main.c b/src/vpp/vnet/main.c index f4cc5042d45..b8a6f2b5ae2 100644 --- a/src/vpp/vnet/main.c +++ b/src/vpp/vnet/main.c @@ -74,7 +74,9 @@ vpp_find_plugin_path () static void vpe_main_init (vlib_main_t * vm) { +#if VPP_API_TEST_BUILTIN > 0 void vat_plugin_hash_create (void); +#endif if (CLIB_DEBUG > 0) vlib_unix_cli_set_prompt ("DBGvpp# "); @@ -87,7 +89,9 @@ vpe_main_init (vlib_main_t * vm) /* * Create the binary api plugin hashes before loading plugins */ +#if VPP_API_TEST_BUILTIN > 0 vat_plugin_hash_create (); +#endif if (!vlib_plugin_path) vpp_find_plugin_path (); |