summaryrefslogtreecommitdiffstats
path: root/ospfd/ospfd.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-05-20 01:36:05 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-05-20 01:36:05 +0200
commitcf744958ba2c89b5670ac3a0ee1aa92be630cf15 (patch)
tree3755842b26b18cffc66c64e75116dc0adafa04a0 /ospfd/ospfd.h
parentzebra-enable-link-detect-by-default.patch (diff)
downloadfrr-cf744958ba2c89b5670ac3a0ee1aa92be630cf15.tar.xz
frr-cf744958ba2c89b5670ac3a0ee1aa92be630cf15.zip
ospfd-spf-stats.patch
Compute and display SPF execution statistics Detailed SPF statistics, all around time spent executing various pieces of SPF such as the SPF algorithm itself, installing routes, pruning unreachable networks etc. Reason codes for firing up SPF are: R - Router LSA, N - Network LSA, S - Summary LSA, ABR - ABR status change, ASBR - ASBR Status Change, AS - ASBR Summary, M - MaxAge Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com> Reviewed-by: JR Rivers <jrrivers@cumulusnetworks.com> Reviewed-by: Scott Feldman <sfeldma@cumulusnetworks.com> Reviewed-by: Ayan Banerjee <ayan@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r--ospfd/ospfd.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ospfd/ospfd.h b/ospfd/ospfd.h
index 4242aa01b..bf70d0227 100644
--- a/ospfd/ospfd.h
+++ b/ospfd/ospfd.h
@@ -194,8 +194,9 @@ struct ospf
struct route_table *external_lsas; /* Database of external LSAs,
prefix is LSA's adv. network*/
- /* Time stamps. */
+ /* Time stamps */
struct timeval ts_spf; /* SPF calculation time stamp. */
+ struct timeval ts_spf_duration; /* Execution time of last SPF */
struct route_table *maxage_lsa; /* List of MaxAge LSA for deletion. */
int redistribute; /* Num of redistributed protocols. */
@@ -393,6 +394,9 @@ struct ospf_area
/* Statistics field. */
u_int32_t spf_calculation; /* SPF Calculation Count. */
+ /* Time stamps. */
+ struct timeval ts_spf; /* SPF calculation time stamp. */
+
/* Router count. */
u_int32_t abr_count; /* ABR router in this area. */
u_int32_t asbr_count; /* ASBR router in this area. */