On Mon, 2008-09-08 at 14:49 -0600, Terry Greeniaus wrote: > On Mon, 8 Sep 2008, Hal Rosenstock wrote: > > > > Perhaps I have overlooked something? If not, what would the recommended > > > way of setting this bit in the capabilityMask be? > > > > The only way I see to do this from user space is something like the > > following: > > > > SubnGet PortInfo of local port > > Set IsDeviceManagementSupport bit in PortInfo.CapabilityMask > > Change any other PortInfo fields so set will work (LinkState > > andPortPhysicalState set to no state change, don't think any others > > need changing) > > SubnSet PortInfo of local port (make sure set worked) > > > > The downside is that if your application crashes you will need to have > > a cleanup program to unset that bit. > > The IBA lists the capabilityMask field as read-only. Is doing a > SubnSet on the PortInfo.CapabilityMask field supported in OFED? That > would solve the immediate problem.
You can't use the SubnSet(Portinfo) MADs to change the PortInfo.CapabilityMask. You (or someone else) will need to modify the kernel to call ib_modify_port() with the bit set in ib_port_modify.set_port_cap_mask. _______________________________________________ general mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
