[openib-general] [PATCH 3/4] New routing module which loads LFT tables from dump file.

Hal Rosenstock halr at voltaire.com
Wed Jun 14 06:24:23 PDT 2006


On Sat, 2006-06-10 at 20:32, Sasha Khapyorsky wrote:
> This patch implements trivial routing module which able to load LFT
> tables from dump file. Main features:
> - support for unicast LFTs only, support for multicast can be added later
> - this will run after min hop matrix calculation
> - this will load switch LFTs according to the path entries introduced in
>   the dump file
> - no additional checks will be performed (like is port connected, etc)
> - in case when fabric LIDs were changed this will try to reconstruct LFTs
>   correctly if endport GUIDs are represented in the dump file (in order
>   to disable this GUIDs may be removed from the dump file or zeroed)
> 
> The dump file format is compatible with output of 'ibroute' util and for
> whole fabric may be generated with script like this:
> 
>   for sw_lid in `ibswitches | awk '{print $NF}'` ; do
> 	ibroute $sw_lid
>   done > /path/to/dump_file
> 
> , or using DR paths:
> 
> 
>   for sw_dr in `ibnetdiscover -v \
> 		| sed -ne '/^DR path .* switch /s/^DR path \[\(.*\)\].*$/\1/p' \
> 		| sed -e 's/\]\[/,/g' \
> 		| sort -u` ; do
> 	ibroute -D ${sw_dr}
>   done > /path/to/dump_file
> 
> 
> In order to activate new module use:
> 
>   opensm -R file -U /path/to/dump_file
> 
> Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>

Thanks! Applied with some cosmetic changes.

-- Hal





More information about the general mailing list