From a546ef96a8170aeea70d771ee45662cadc628344 Mon Sep 17 00:00:00 2001 From: Andrew Yourtchenko Date: Thu, 7 Sep 2017 13:49:07 +0200 Subject: acl-plugin: add hitcount to applied hash-acl entries Add a counter incremented upon the ACL check, so it is easier to see which kind of traffic is being checked by the policy, add the corresponding output to the debug CLI "show acl-plugin tables" command. Change-Id: Id811dddf204e63eeceabfcc509e3e9c5aae1dbc8 Signed-off-by: Andrew Yourtchenko --- src/plugins/acl/hash_lookup_types.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/acl/hash_lookup_types.h') diff --git a/src/plugins/acl/hash_lookup_types.h b/src/plugins/acl/hash_lookup_types.h index f7110007002..1fa197ec978 100644 --- a/src/plugins/acl/hash_lookup_types.h +++ b/src/plugins/acl/hash_lookup_types.h @@ -64,6 +64,10 @@ typedef struct { * chain tail, if this is the first entry */ u32 tail_applied_entry_index; + /* + * number of hits on this entry + */ + u64 hitcount; /* * Action of this applied ACE */ -- cgit 1.2.3-korg