[openib-general] ib_gid lookup
Hal Rosenstock
halr at voltaire.com
Tue Jun 20 10:42:18 PDT 2006
Hi again Amit,
On Tue, 2006-06-20 at 06:08, Hal Rosenstock wrote:
> Hi Amit,
>
> On Mon, 2006-06-19 at 20:36, Amit Byron wrote:
> > hello,
> > i'm trying to find whether i can do a lookup of ib_gid by either
> > node name or node's ip address. is this information available from
> > the subnet manager?
>
> The SM doesn't know the node name but you might be able to do this by
> NodeDescription depending on how the subnet was setup (the
> NodeDescriptions would need to be made unique on each node; a script for
> this was supplied for mthca; there is also a current standards issue
> with the SM detecting that these had changed which is being worked on).
> If that were to be done, the SA could be queried by NodeDescription
> which would return a NodeRecord which would obtain the NodeInfo which
> includes the NodeGUID and PortGUID. Note it also returns the base LID as
> well.
>
> The SM does not know the IP addresses unless they are registered by DAPL
> (via ServiceRecords) but I'm not sure that is done anymore or whether
> DAPL runs in your environment.
Generating an ARP to the IP address could resolve the GID. This API is
exposed through the RDMA CM (in both kernel and user space).
That might be your best option.
-- Hal
> -- Hal
>
> > thanks,
> > Amit.
> >
> >
> > _______________________________________________
> > openib-general mailing list
> > openib-general at openib.org
> > http://openib.org/mailman/listinfo/openib-general
> >
> > To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
> >
>
>
> _______________________________________________
> openib-general mailing list
> openib-general at openib.org
> http://openib.org/mailman/listinfo/openib-general
>
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
>
More information about the general
mailing list