[openib-general] [PATCHv2] OpenSM/osm_lid_mgr.c: Support enhanced switch port 0 forLMC > 0
    Eitan Zahavi 
    eitan at mellanox.co.il
       
    Thu Jun 29 12:54:33 PDT 2006
    
    
  
Hi Hal,
I think the check for num lids is so similar it deserves an inline
function.
What do you say?
I refer to:
> +        if (p_sw && (p_si = osm_switch_get_si_ptr(p_sw)) &&
> +            ib_switch_info_is_enhanced_port0(p_si))
> +        {
> +          num_lids = lmc_num_lids;
> +        }
> +        else
> +        {
> +          num_lids = 1;
> +        }
> +      }
> 
 
    
    
More information about the general
mailing list