[ofa-general] [RFC] OpenSM vendor layer
Sasha Khapyorsky
sashak at voltaire.com
Sat Feb 14 07:25:33 PST 2009
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.
Sasha
More information about the general
mailing list