[ofa-general] DM question
Hal Rosenstock
hal.rosenstock at gmail.com
Mon Sep 8 16:36:05 PDT 2008
On Mon, Sep 8, 2008 at 4:57 PM, Ralph Campbell
<ralph.campbell at qlogic.com> wrote:
> 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.
Right.
>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.
Doing it in the kernel is the straightforward part.
It's not available from user space so something needs to be added for
that. It could be done like issm but it was decided not to chew up
additional fds needlessly.
-- Hal
>
More information about the general
mailing list