aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src/cache_policies/cs_policy.h
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2021-07-20 13:20:35 +0200
committerMauro Sardara <msardara@cisco.com>2021-07-20 13:29:03 +0200
commitb4353c871463c06ed47db1ed9c3106f9dd201838 (patch)
treedd8e670e597a4e10bf214adf926ade5f135ce52c /hicn-plugin/src/cache_policies/cs_policy.h
parentf62e74657d802555db61345eaa46362b09b12e88 (diff)
HICN-716 Upgrade to VPP 21.06
Also: - Format hicn-plugin code Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I0f4626fdeaf0fc5ae1f43904ca006b092e3e9d5f
Diffstat (limited to 'hicn-plugin/src/cache_policies/cs_policy.h')
-rw-r--r--hicn-plugin/src/cache_policies/cs_policy.h55
1 files changed, 26 insertions, 29 deletions
diff --git a/hicn-plugin/src/cache_policies/cs_policy.h b/hicn-plugin/src/cache_policies/cs_policy.h
index 0bf745915..505138943 100644
--- a/hicn-plugin/src/cache_policies/cs_policy.h
+++ b/hicn-plugin/src/cache_policies/cs_policy.h
@@ -24,7 +24,6 @@
* This file provides the needed structures to implement a CS policy
*/
-
/*
* Structure
*/
@@ -57,36 +56,34 @@ struct hicn_cs_policy_s;
*/
typedef struct hicn_cs_policy_vft_s
{
- void (*hicn_cs_insert) (struct hicn_pit_cs_s * p,
- struct hicn_hash_node_s * node,
- struct hicn_pcs_entry_s * pcs,
- hicn_cs_policy_t * policy);
-
- void (*hicn_cs_update) (struct hicn_pit_cs_s * p,
- struct hicn_hash_node_s * node,
- struct hicn_pcs_entry_s * pcs,
- hicn_cs_policy_t * policy);
-
- void (*hicn_cs_dequeue) (struct hicn_pit_cs_s * p,
- struct hicn_hash_node_s * node,
- struct hicn_pcs_entry_s * pcs,
- hicn_cs_policy_t * policy);
-
- void (*hicn_cs_delete_get) (struct hicn_pit_cs_s * p,
- hicn_cs_policy_t * policy,
- struct hicn_hash_node_s ** node,
- struct hicn_pcs_entry_s ** pcs,
- struct hicn_hash_entry_s ** hash_entry);
-
- int (*hicn_cs_trim) (struct hicn_pit_cs_s * p, u32 * node_list, int sz,
- hicn_cs_policy_t * policy);
-
- int (*hicn_cs_flush) (vlib_main_t * vm, struct hicn_pit_cs_s * p,
- hicn_cs_policy_t * policy_state);
+ void (*hicn_cs_insert) (struct hicn_pit_cs_s *p,
+ struct hicn_hash_node_s *node,
+ struct hicn_pcs_entry_s *pcs,
+ hicn_cs_policy_t *policy);
+
+ void (*hicn_cs_update) (struct hicn_pit_cs_s *p,
+ struct hicn_hash_node_s *node,
+ struct hicn_pcs_entry_s *pcs,
+ hicn_cs_policy_t *policy);
+
+ void (*hicn_cs_dequeue) (struct hicn_pit_cs_s *p,
+ struct hicn_hash_node_s *node,
+ struct hicn_pcs_entry_s *pcs,
+ hicn_cs_policy_t *policy);
+
+ void (*hicn_cs_delete_get) (struct hicn_pit_cs_s *p,
+ hicn_cs_policy_t *policy,
+ struct hicn_hash_node_s **node,
+ struct hicn_pcs_entry_s **pcs,
+ struct hicn_hash_entry_s **hash_entry);
+
+ int (*hicn_cs_trim) (struct hicn_pit_cs_s *p, u32 *node_list, int sz,
+ hicn_cs_policy_t *policy);
+
+ int (*hicn_cs_flush) (vlib_main_t *vm, struct hicn_pit_cs_s *p,
+ hicn_cs_policy_t *policy_state);
} hicn_cs_policy_vft_t;
-
-
#endif /* // __HICN_POLICY_H__ */
/*