summaryrefslogtreecommitdiffstats
path: root/pimd/pim_zebra.c
diff options
context:
space:
mode:
authorEverton Marques <everton.marques@gmail.com>2009-08-13 15:39:31 -0300
committerEverton Marques <everton.marques@gmail.com>2009-10-02 10:44:31 -0300
commit3926cf02edc66db77e015a1fc1ca59eaad7aaeb8 (patch)
treefd84dc50a2daaf01dba9886c3335aaf37e301c62 /pimd/pim_zebra.c
parent638f9840dc9650777a6d1902bf44a37aa318bd87 (diff)
downloadquagga-3926cf02edc66db77e015a1fc1ca59eaad7aaeb8.tar.bz2
quagga-3926cf02edc66db77e015a1fc1ca59eaad7aaeb8.tar.xz
[pim] RPF cache refresh statistics
Diffstat (limited to 'pimd/pim_zebra.c')
-rw-r--r--pimd/pim_zebra.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c
index 56e4dba1..9764532b 100644
--- a/pimd/pim_zebra.c
+++ b/pimd/pim_zebra.c
@@ -447,13 +447,21 @@ static int on_rpf_cache_refresh(struct thread *t)
/* update kernel multicast forwarding cache (MFC) */
scan_oil();
+ ++qpim_rpf_cache_refresh_events;
+
return 0;
}
static void sched_rpf_cache_refresh()
{
- if (qpim_rpf_cache_refresher)
+ ++qpim_rpf_cache_refresh_requests;
+
+ if (qpim_rpf_cache_refresher) {
+ /* Refresh timer is already running */
return;
+ }
+
+ /* Start refresh timer */
if (PIM_DEBUG_ZEBRA) {
zlog_debug("%s: triggering %ld msec timer",