[ofa-general] rdma/iWarp capability of an ethX interface

Liran Liss liranl at mellanox.co.il
Thu Jul 9 23:30:08 PDT 2009


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-bounces at lists.openfabrics.org
[mailto:general-bounces at lists.openfabrics.org] On Behalf Of Roland
Dreier
Sent: Friday, July 10, 2009 2:15 AM
To: Steve Wise
Cc: general at 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 at lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit
http://openib.org/mailman/listinfo/openib-general



More information about the general mailing list