aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/policer/police_inlines.h
diff options
context:
space:
mode:
authorBrian Russell <brian@graphiant.com>2021-02-15 11:49:42 +0000
committerNeale Ranns <neale@graphiant.com>2021-02-15 16:18:32 +0000
commit54be0cc044f445853fae7b8995c477605250af16 (patch)
treec0be40e818039fa620efda5bb85e7535f63ef296 /src/vnet/policer/police_inlines.h
parent1a3e08a7197addb1c07e66c1b1da3286c9bcb140 (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/police_inlines.h')
-rw-r--r--src/vnet/policer/police_inlines.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/policer/police_inlines.h b/src/vnet/policer/police_inlines.h
index f9378c7f302..fe0c754b7d4 100644
--- a/src/vnet/policer/police_inlines.h
+++ b/src/vnet/policer/police_inlines.h
@@ -65,7 +65,7 @@ vnet_policer_police (vlib_main_t * vm,
qos_action_type_en act;
u32 len;
u32 col;
- policer_read_response_type_st *pol;
+ policer_t *pol;
vnet_policer_main_t *pm = &vnet_policer_main;
/* Speculative prefetch assuming a conform result */
@@ -107,7 +107,7 @@ policer_handoff (vlib_main_t *vm, vlib_node_runtime_t *node,
u16 thread_indices[VLIB_FRAME_SIZE], *ti;
u32 n_enq, n_left_from, *from;
vnet_policer_main_t *pm;
- policer_read_response_type_st *policer;
+ policer_t *policer;
u32 this_thread, policer_thread;
pm = &vnet_policer_main;