[ofa-general] RE: impossibility to bind a device/port with the rdma-cm when the port is down

Alex Rosenbaum Alexr at voltaire.com
Wed Feb 4 21:21:07 PST 2009


>- I'm not quite following this yet.  Are you wanting a list of IP
addresses that map to RDMA devices?

When looking at a case that the user defines a local interface ip addr
which it wants to work with. The application does not know if the ip
addr maps to an rdma-cm capable device (IB or iWapr) or not (i.e.:
1GigE).
In current implemenation if the IB port is down (i.e.: cable unpluged)
but the interface is up, rdma_bind_addr fails. That will also be the
case if the rdma_bind_addr is called with an ip addr of the 1GigE
interface.
The application does not know if the failure is due to trying to bind on
a 1GigE deives which is not rdma-cm capable or if it is a capable
rdma-cm device which is in a temporery 'bad' state.
Assuming this is an rdma-cm capable device in a 'bad' state, the user
space application can wait for asyn ibv events (PORT_ACTIVE) from the
device. Once the device is active again it can retry the rdma_create_qp
or rdma_join_mc.

Alex





More information about the general mailing list