option not supported. Part of patch supplied by Brad Benton
<brad.benton@us.ibm.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@143
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
cl_ntoh64(p_node->node_info.node_guid) );
goto Exit;
}
+
+ /* bail out if this is a switch with no partition enforcement capability */
+ if (cl_ntoh16(p_switch->switch_info.enforce_cap) == 0)
+ goto Exit;
+
max_blocks = (cl_ntoh16(p_switch->switch_info.enforce_cap)+IB_NUM_PKEY_ELEMENTS_IN_BLOCK -1)
/ IB_NUM_PKEY_ELEMENTS_IN_BLOCK ;
}