aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/policer/policer.c
diff options
context:
space:
mode:
authorBrian Russell <brian@graphiant.com>2021-02-10 18:34:48 +0000
committerNeale Ranns <neale@graphiant.com>2021-02-12 18:58:09 +0000
commitbbccdc583c91c21ee4caf9043845468cd758ca9f (patch)
tree14d29d171ca00591d096377a56ebd8944f3e5169 /src/vnet/policer/policer.c
parentb2aae75c1712b733f16e97bdb69e4b93f32de10c (diff)
policer: tidy up
Convert old logging style to new and remove unused tracepoints. Remove code always conditionally not compiled. Make comment style consistent. Type: improvement Change-Id: I13339f28539cf190fb92be2d5c8020b6249319c8 Signed-off-by: Brian Russell <brian@graphiant.com>
Diffstat (limited to 'src/vnet/policer/policer.c')
-rw-r--r--src/vnet/policer/policer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/policer/policer.c b/src/vnet/policer/policer.c
index 6d5197ed8ed..2c05ae21515 100644
--- a/src/vnet/policer/policer.c
+++ b/src/vnet/policer/policer.c
@@ -567,6 +567,7 @@ policer_init (vlib_main_t * vm)
pm->vlib_main = vm;
pm->vnet_main = vnet_get_main ();
+ pm->log_class = vlib_log_register_class ("policer", 0);
pm->policer_config_by_name = hash_create_string (0, sizeof (uword));
pm->policer_index_by_name = hash_create_string (0, sizeof (uword));