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/policer/policer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vnet/policer/policer.h') diff --git a/src/vnet/policer/policer.h b/src/vnet/policer/policer.h index 4c2c7419f20..783c0ad2f35 100644 --- a/src/vnet/policer/policer.h +++ b/src/vnet/policer/policer.h @@ -26,11 +26,11 @@ typedef struct { /* policer pool, aligned */ - policer_read_response_type_st *policers; + policer_t *policers; /* config + template h/w policer instance parallel pools */ qos_pol_cfg_params_st *configs; - policer_read_response_type_st *policer_templates; + policer_t *policer_templates; /* Config by name hash */ uword *policer_config_by_name; -- cgit 1.2.3-korg