[openib-general] [PATCH] OpenSM/osm_port.h: In osm_physp_trim_base_lid_to_valid_range, also fix LID 0
Hal Rosenstock
halr at voltaire.com
Sun Dec 18 08:18:29 PST 2005
OpenSM/osm_port.h: In osm_physp_trim_base_lid_to_valid_range, fix LID 0
as well as multicast LIDs
Signed-off-by: Hal Rosenstock <halr at voltaire.com>
Index: osm_port.h
===================================================================
--- osm_port.h (revision 4522)
+++ osm_port.h (working copy)
@@ -473,7 +473,8 @@ osm_physp_trim_base_lid_to_valid_range(
ib_net16_t orig_lid = 0;
CL_ASSERT( osm_physp_is_valid( p_physp ) );
- if ( cl_ntoh16( p_physp->port_info.base_lid ) > IB_LID_UCAST_END_HO )
+ if ( ( cl_ntoh16( p_physp->port_info.base_lid ) > IB_LID_UCAST_END_HO ) ||
+ ( cl_ntoh16( p_physp->port_info.base_lid ) < IB_LID_UCAST_START_HO ) )
{
orig_lid = p_physp->port_info.base_lid;
p_physp->port_info.base_lid = 0;
More information about the general
mailing list