[Olsr-cvs] olsrd-current/src/cfgparser olsrd_conf.c,1.65,1.66
Bernd Petrovitsch
(spam-protected)
Wed Dec 12 22:57:29 CET 2007
Update of /cvsroot/olsrd/olsrd-current/src/cfgparser
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15735/src/cfgparser
Modified Files:
olsrd_conf.c
Log Message:
applied patch by Hannes Gredler <(spam-protected)>::
pls find attached a pointer for further CPU savings in olsrd.
even in large networks (>250 nodes) the avg. CPU utilization
does not get beyond 0.5% CPU load on standard 200Mhz WRT hardware.
patch from http://gredler.at/download/olsrd/rib2-refactoring4.diff
change-list:
- avoid the periodical rib-tree insertion
- add a FOR_ALL_HNA_RT_ENTRIES() macro for the snmp folks
(or any parties who want to walk HNA entries).
- add an olsr_cnf option 'flat_fib_metrics' which defaults to TRUE.
this is as per sven-olas request who has expressed concerns
that the current flap-metric style is a bit unpleasant for troubleshooting.
note that i have not yet added the cfg file parser routine for that -
just the required tweaks in the change-processing FIB code.
Index: olsrd_conf.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/cfgparser/olsrd_conf.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -C2 -d -r1.65 -r1.66
*** olsrd_conf.c 2 Dec 2007 19:00:28 -0000 1.65
--- olsrd_conf.c 12 Dec 2007 21:57:27 -0000 1.66
***************
*** 437,440 ****
--- 437,441 ----
cnf->willingness_auto = DEF_WILL_AUTO;
cnf->ipc_connections = DEF_IPC_CONNECTIONS;
+ cnf->flat_fib_metric = DEF_FLAT_FIB_METRIC;
cnf->use_hysteresis = DEF_USE_HYST;
More information about the Olsr-cvs
mailing list