***SPAM*** Re: [ofa-general] [RFC] OpenSM vendor layer

Hal Rosenstock hal.rosenstock at gmail.com
Wed Feb 18 07:40:34 PST 2009


Sasha,

On 2/14/09, Sasha Khapyorsky <sashak at voltaire.com> wrote:
> Hi Hal,
>
> On 19:41 Thu 12 Feb     , Hal Rosenstock wrote:
>> >
>> > It is already supplied by libibumad - by umad_get_ca()
>> > (ca.ports[i]->pkeys). I think you just need to copy this to
>> > ib_port_attr_t structure.
>>
>> Yes but rather than using supplied pointers (as inputs for the per
>> port pkey/guid tables), the other vendor layers require a large enough
>> buffer for these tables and set the port pointers appropriately (on
>> output) rather than supplying these pointers as input parameters. So
>> if we use these as input, then we definitely break the other vendor
>> layers.
>
> Ok, if you already have an usage example, this is even simpler - just
> alloc mem and copy pkey table.

I ended up going with the original approach.

-- Hal

> Sasha
>



More information about the general mailing list