aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-04-25 01:02:34 -0700
committerNeale Ranns <nranns@cisco.com>2018-04-25 13:11:29 +0000
commit720d86f82b06cec71d57e997ab0a2a55fe7f280b (patch)
tree733a154d8e00ee1f6a3fc858b0df38917a84762b /src/plugins
parente9fcf23506866d50c2a88a6dd9d90bc2acf8c5c1 (diff)
ABF: remove the inclusion of version.h from abf_policy so it does not recompile each time
Change-Id: I97ef0ef5f694062e5867e11d434e3b521a57f649 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/abf/abf_api.c6
-rw-r--r--src/plugins/abf/abf_policy.c8
2 files changed, 6 insertions, 8 deletions
diff --git a/src/plugins/abf/abf_api.c b/src/plugins/abf/abf_api.c
index 55f43e626ad..958d129f8a4 100644
--- a/src/plugins/abf/abf_api.c
+++ b/src/plugins/abf/abf_api.c
@@ -317,6 +317,12 @@ abf_api_init (vlib_main_t * vm)
VLIB_INIT_FUNCTION (abf_api_init);
+/* *INDENT-OFF* */
+VLIB_PLUGIN_REGISTER () = {
+ .version = VPP_BUILD_VER,
+ .description = "ACL based Forwarding",
+};
+/* *INDENT-ON* */
/*
* fd.io coding-style-patch-verification: ON
diff --git a/src/plugins/abf/abf_policy.c b/src/plugins/abf/abf_policy.c
index a0c4ac8adb3..9c7406553e6 100644
--- a/src/plugins/abf/abf_policy.c
+++ b/src/plugins/abf/abf_policy.c
@@ -17,7 +17,6 @@
#include <vlib/vlib.h>
#include <vnet/plugin/plugin.h>
-#include <vpp/app/version.h>
#include <vnet/fib/fib_path_list.h>
#include <vnet/fib/fib_walk.h>
@@ -448,13 +447,6 @@ abf_policy_init (vlib_main_t * vm)
VLIB_INIT_FUNCTION (abf_policy_init);
-/* *INDENT-OFF* */
-VLIB_PLUGIN_REGISTER () = {
- .version = VPP_BUILD_VER,
- .description = "ACL based Forwarding",
-};
-/* *INDENT-ON* */
-
/*
* fd.io coding-style-patch-verification: ON
*