[Olsr-cvs] olsrd-current/src/win32 kernel_routes.c,1.26,1.27

Bernd Petrovitsch (spam-protected)
Wed Dec 12 22:57:29 CET 2007


Update of /cvsroot/olsrd/olsrd-current/src/win32
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15735/src/win32

Modified Files:
	kernel_routes.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: kernel_routes.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/win32/kernel_routes.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** kernel_routes.c	29 Nov 2007 22:21:26 -0000	1.26
--- kernel_routes.c	12 Dec 2007 21:57:27 -0000	1.27
***************
*** 87,91 ****
    Row.dwForwardAge = INFINITE;
    Row.dwForwardNextHopAS = 0;
!   Row.dwForwardMetric1 = RT_METRIC_DEFAULT;
    Row.dwForwardMetric2 = -1;
    Row.dwForwardMetric3 = -1;
--- 87,91 ----
    Row.dwForwardAge = INFINITE;
    Row.dwForwardNextHopAS = 0;
!   Row.dwForwardMetric1 = olsr_fib_metric(&rt->rt_best->rtp_metric.hops);
    Row.dwForwardMetric2 = -1;
    Row.dwForwardMetric3 = -1;
***************
*** 164,168 ****
    Row.dwForwardAge = INFINITE;
    Row.dwForwardNextHopAS = 0;
!   Row.dwForwardMetric1 = RT_METRIC_DEFAULT;
    Row.dwForwardMetric2 = -1;
    Row.dwForwardMetric3 = -1;
--- 164,168 ----
    Row.dwForwardAge = INFINITE;
    Row.dwForwardNextHopAS = 0;
!   Row.dwForwardMetric1 = olsr_fib_metric(&rt->rt_metric.hops);
    Row.dwForwardMetric2 = -1;
    Row.dwForwardMetric3 = -1;





More information about the Olsr-cvs mailing list