tables there is no other way but to refresh the entire keys map.
Moreover, if the same key exists but with full membership it should have
- precedence on the key with partial membership !
+ precedence on the key with limited membership !
*/
cl_map_remove_all( &p_pkey_tbl->keys );
OSM_LOG_ENTER( p_log, osm_physp_share_pkey );
+ /* If two ports are same, no need to check */
+ if (p_physp_1 == p_physp_2)
+ return (TRUE);
+
pkey_tbl1 = osm_physp_get_pkey_tbl(p_physp_1);
pkey_tbl2 = osm_physp_get_pkey_tbl(p_physp_2);
/*
The spec: 10.9.2 does not require each phys port to have PKey Table.
- So actually if it does not - we would need to use the default port
- instead.
+ So actually if it does not, we need to use the default port instead.
HACK: meanwhile we will ignore the check
*/
if (__osm_match_pkey(pkey1, pkey2))
{
-
osm_log( p_log, OSM_LOG_DEBUG,
"osm_physp_share_pkey: "
"Matched pkeys: 0x%04x 0x%04x\n",
return(TRUE);
}
- /* advance the lower value if they are no equal */
+ /* advance the lower value if they are not equal */
pkey1_base = cl_map_key( map_iter1 );
pkey2_base = cl_map_key( map_iter2 );
if (pkey2_base == pkey1_base)