Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vrrp: add stats support and update API
[vpp.git]
/
src
/
plugins
/
vrrp
/
vrrp_packet.c
diff --git
a/src/plugins/vrrp/vrrp_packet.c
b/src/plugins/vrrp/vrrp_packet.c
index
89a6ede
..
0ae73aa
100644
(file)
--- a/
src/plugins/vrrp/vrrp_packet.c
+++ b/
src/plugins/vrrp/vrrp_packet.c
@@
-354,6
+354,12
@@
vrrp_adv_send (vrrp_vr_t * vr, int shutdown)
vlib_put_frame_to_node (vm, node_index, to_frame);
+ vrrp_incr_stat_counter (VRRP_STAT_COUNTER_ADV_SENT, vr->stat_index);
+ if (shutdown)
+ {
+ vrrp_incr_stat_counter (VRRP_STAT_COUNTER_PRIO0_SENT, vr->stat_index);
+ }
+
vec_free (bi);
return 0;