kernel-ark/include/rdma
Sean Hefty 6f8372b69c RDMA/cm: fix loopback address support
The RDMA CM is intended to support the use of a loopback address
when establishing a connection; however, the behavior of the CM
when loopback addresses are used is confusing and does not always
work, depending on whether loopback was specified by the server,
the client, or both.

The defined behavior of rdma_bind_addr is to associate an RDMA
device with an rdma_cm_id, as long as the user specified a non-
zero address.  (ie they weren't just trying to reserve a port)
Currently, if the loopback address is passed to rdam_bind_addr,
no device is associated with the rdma_cm_id.  Fix this.

If a loopback address is specified by the client as the destination
address for a connection, it will fail to establish a connection.
This is true even if the server is listing across all addresses or
on the loopback address itself.  The issue is that the server tries
to translate the IP address carried in the REQ message to a local
net_device address, which fails.  The translation is not needed in
this case, since the REQ carries the actual HW address that should
be used.

Finally, cleanup loopback support to be more transport neutral.
Replace separate calls to get/set the sgid and dgid from the
device address to a single call that behaves correctly depending
on the format of the device address.  And support both IPv4 and
IPv6 address formats.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>

[ Fixed RDS build by s/ib_addr_get/rdma_addr_get/  - Roland ]

Signed-off-by: Roland Dreier <rolandd@cisco.com>
2009-11-19 13:26:06 -08:00
..
ib_addr.h RDMA/cm: fix loopback address support 2009-11-19 13:26:06 -08:00
ib_cache.h
ib_cm.h trivial: fix typo "to to" in multiple files 2009-09-21 15:14:55 +02:00
ib_fmr_pool.h
ib_mad.h
ib_marshall.h
ib_pack.h
ib_sa.h RDMA/ucma: Add option to manually set IB path 2009-11-16 09:30:33 -08:00
ib_smi.h
ib_umem.h
ib_user_cm.h
ib_user_mad.h
ib_user_sa.h RDMA/ucma: Add option to manually set IB path 2009-11-16 09:30:33 -08:00
ib_user_verbs.h
ib_verbs.h
iw_cm.h
Kbuild
rdma_cm_ib.h
rdma_cm.h
rdma_user_cm.h RDMA/ucma: Add option to manually set IB path 2009-11-16 09:30:33 -08:00