diff options
author | 2019-03-23 14:46:14 +0100 | |
---|---|---|
committer | 2019-03-23 16:05:19 +0100 | |
commit | 2ba7f1f0bef4ecb20af57283d456e66e31fa667a (patch) | |
tree | 5c29f03e3259bc9def5623152ae9e3eff771f39f /hicn-plugin/src/faces/face.c | |
parent | a2bdc00ea25f89185c1095a48a8f51cb2c1a20e6 (diff) |
[HICN-138] Added number of received/transmitted bytes and packets on each face
Change-Id: Icfe9cd84bdc72afef3d714064e695d1abef368f5
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Diffstat (limited to 'hicn-plugin/src/faces/face.c')
-rw-r--r-- | hicn-plugin/src/faces/face.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hicn-plugin/src/faces/face.c b/hicn-plugin/src/faces/face.c index 26dcf960b..baf90a185 100644 --- a/hicn-plugin/src/faces/face.c +++ b/hicn-plugin/src/faces/face.c @@ -31,6 +31,14 @@ hicn_face_t *hicn_dpoi_face_pool; dpo_type_t first_type = DPO_FIRST; +vlib_combined_counter_main_t *counters; + +const char *HICN_FACE_CTRX_STRING[] = { +#define _(a,b,c) c, + foreach_hicn_face_counter +#undef _ +}; + u8 * face_show (u8 * s, int face_id, u32 indent) { @@ -77,6 +85,7 @@ hicn_face_module_init (vlib_main_t * vm) hicn_iface_ip_init (vm); hicn_face_udp_init (vm); hicn_iface_udp_init (vm); + vec_alloc (counters, 40); } u8 * |