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

Roland Dreier rdreier at cisco.com
Thu Jul 9 16:15:11 PDT 2009


 > > 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



More information about the general mailing list