summaryrefslogtreecommitdiffstats
path: root/src/plugins/dns
diff options
context:
space:
mode:
authorBin Zhou (bzhou2) <bzhou2@cisco.com>2021-06-21 11:09:30 -0400
committerDamjan Marion <dmarion@me.com>2021-07-13 17:16:54 +0000
commit8147559ff9ea9119b95718238713c8fbaa22e4ca (patch)
tree7de2e67d94e96706a6ce3165d640dcc81a772d9a /src/plugins/dns
parente3ef3f6aea261c4b1a8d599cc1e76cbe8a4a670f (diff)
misc: fix init order to avoid startup warnings
Put plugin init order inside plugin instead of in vnet Type: improvement Signed-off-by: Bin Zhou (bzhou2) <bzhou2@cisco.com> Change-Id: Icbacdb3f1cb4ac9d74e3f78458e8bc333793b4d6
Diffstat (limited to 'src/plugins/dns')
-rw-r--r--src/plugins/dns/dns.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/dns/dns.c b/src/plugins/dns/dns.c
index 0684a104bc3..0801681b8b3 100644
--- a/src/plugins/dns/dns.c
+++ b/src/plugins/dns/dns.c
@@ -3020,9 +3020,11 @@ dns_init (vlib_main_t * vm)
return 0;
}
-VLIB_INIT_FUNCTION (dns_init);
-
/* *INDENT-OFF* */
+VLIB_INIT_FUNCTION (dns_init) = {
+ .init_order = VLIB_INITS ("flow_classify_init", "dns_init"),
+};
+
VLIB_PLUGIN_REGISTER () =
{
.version = VPP_BUILD_VER,