Thanks for all the suggestions. I'm tending towards trying the rdma_bind approach.
On Thu, Jul 9, 2009 at 11:30 PM, Liran Liss<lir...@mellanox.co.il> wrote: > I think that all iWARP devices encode their MAC in index0 of their gid > table. > You can look for a matching RDMA device by querying its gids. > > > -----Original Message----- > From: general-boun...@lists.openfabrics.org > [mailto:general-boun...@lists.openfabrics.org] On Behalf Of Roland > Dreier > Sent: Friday, July 10, 2009 2:15 AM > To: Steve Wise > Cc: general@lists.openfabrics.org > Subject: Re: [ofa-general] rdma/iWarp capability of an ethX interface > > > > > Is there a way to query an ethX interface and find out if it's > > > iWarp/RDMA capable? > > > > > > > > > > Unfortunately there isn't an easy way to do this (someone should > > implement this as part of the rdma services!). > > > > One way you can do it is to get all the IP addresses from each > > interface via SIOCGIFCONF and friends, and then attempt to rdma_bind() >> to each address/port 0. If it succeeds, then that interface supports >> rdma. OpenMPI does this... > > Another semi-ugly way to do it is to look at the > /sys/class/net/ethX/device link and then look at the > /sys/class/infiniband/xxx/device links and see if it is the same. > any > _______________________________________________ > general mailing list > general@lists.openfabrics.org > http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general > > To unsubscribe, please visit > http://openib.org/mailman/listinfo/openib-general > _______________________________________________ > general mailing list > general@lists.openfabrics.org > http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general > > To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general > _______________________________________________ general mailing list general@lists.openfabrics.org http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general