From 720d86f82b06cec71d57e997ab0a2a55fe7f280b Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Wed, 25 Apr 2018 01:02:34 -0700 Subject: 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 --- src/plugins/abf/abf_api.c | 6 ++++++ src/plugins/abf/abf_policy.c | 8 -------- 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 #include -#include #include #include @@ -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 * -- cgit 1.2.3-korg