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
diff --git a/src/vnet/policer/policer_api.c b/src/vnet/policer/policer_api.c
index 17ed737..eff02fb 100644
--- a/src/vnet/policer/policer_api.c
+++ b/src/vnet/policer/policer_api.c
@@ -118,8 +118,8 @@
static void
send_policer_details (u8 *name, qos_pol_cfg_params_st *config,
- policer_read_response_type_st *templ,
- vl_api_registration_t *reg, u32 context)
+ policer_t *templ, vl_api_registration_t *reg,
+ u32 context)
{
vl_api_policer_details_t *mp;
@@ -170,7 +170,7 @@
u8 *match_name = 0;
u8 *name;
qos_pol_cfg_params_st *config;
- policer_read_response_type_st *templ;
+ policer_t *templ;
reg = vl_api_client_index_to_registration (mp->client_index);
if (!reg)