From 54be0cc044f445853fae7b8995c477605250af16 Mon Sep 17 00:00:00 2001 From: Brian Russell Date: Mon, 15 Feb 2021 11:49:42 +0000 Subject: policer: improve policer struct Ensure policer struct is cache aligned and fits in one cache line. Give it a simpler name to reflect its job as the representation of a policer. Type: improvement Signed-off-by: Brian Russell Change-Id: If1ae4931c818b86eee20306e503f4e5d6b84bd0d --- src/vnet/ip/ip_punt_drop.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet/ip/ip_punt_drop.h') diff --git a/src/vnet/ip/ip_punt_drop.h b/src/vnet/ip/ip_punt_drop.h index 6e7ac5b3c4c..046a86a0056 100644 --- a/src/vnet/ip/ip_punt_drop.h +++ b/src/vnet/ip/ip_punt_drop.h @@ -73,7 +73,7 @@ ip_punt_policer (vlib_main_t * vm, vnet_feature_main_t *fm = &feature_main; vnet_feature_config_main_t *cm = &fm->feature_config_mains[arc_index]; vnet_policer_main_t *pm = &vnet_policer_main; - policer_read_response_type_st *pol = &pm->policers[policer_index]; + policer_t *pol = &pm->policers[policer_index]; u32 pol_thread_index = pol->thread_index; u32 this_thread_index = vm->thread_index; -- cgit 1.2.3-korg