diff options
author | Andrew Yourtchenko <ayourtch@gmail.com> | 2017-08-18 19:10:39 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2017-08-25 17:07:07 +0000 |
commit | 6d157c2f91a5cf334968df5a6ac4963fedb8c706 (patch) | |
tree | 9b4cfbf6dce6aa11655450e91f9249015868c3c6 /src/plugins/acl/hash_lookup_private.h | |
parent | 1f152cd6faf96b524b6b7071b5cffe1916f9c5cc (diff) |
acl-plugin: warning printed when acl_add_replace already applied ACLs (complete the fix for VPP-935)
The fix for VPP-935 missed the case that hash_acl_add() and hash_acl_delete() may be called
during the replacement of the existing applied ACL, as a result the "applied" logic needs
to be replicated for the hash acls separately, since it is a lower layer.
Change-Id: I7dcb2b120fcbdceb5e59acb5029f9eb77bd0f240
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
(cherry picked from commit ce9714032d36d18abe72981552219dff871ff392)
Diffstat (limited to 'src/plugins/acl/hash_lookup_private.h')
-rw-r--r-- | src/plugins/acl/hash_lookup_private.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/acl/hash_lookup_private.h b/src/plugins/acl/hash_lookup_private.h index 7b6449cd6ad..bc621416125 100644 --- a/src/plugins/acl/hash_lookup_private.h +++ b/src/plugins/acl/hash_lookup_private.h @@ -18,9 +18,15 @@ #define ACL_HASH_LOOKUP_DEBUG 0 #if ACL_HASH_LOOKUP_DEBUG == 1 +#define DBG0(...) clib_warning(__VA_ARGS__) +#define DBG(...) +#define DBG_UNIX_LOG(...) +#elif ACL_HASH_LOOKUP_DEBUG == 2 +#define DBG0(...) clib_warning(__VA_ARGS__) #define DBG(...) clib_warning(__VA_ARGS__) #define DBG_UNIX_LOG(...) clib_unix_warning(__VA_ARGS__) #else +#define DBG0(...) #define DBG(...) #define DBG_UNIX_LOG(...) #endif |