diff options
author | Brian Russell <brian@graphiant.com> | 2021-02-15 11:49:42 +0000 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2021-02-15 16:18:32 +0000 |
commit | 54be0cc044f445853fae7b8995c477605250af16 (patch) | |
tree | c0be40e818039fa620efda5bb85e7535f63ef296 /src/vnet/policer/policer.h | |
parent | 1a3e08a7197addb1c07e66c1b1da3286c9bcb140 (diff) |
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 <brian@graphiant.com>
Change-Id: If1ae4931c818b86eee20306e503f4e5d6b84bd0d
Diffstat (limited to 'src/vnet/policer/policer.h')
-rw-r--r-- | src/vnet/policer/policer.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |