Re: [PATCH 2/2] rdma/cm: allow user to specify IP to DGID mapping

Or Gerlitz
2009-10-06T08:00:19Z

Sean Hefty wrote:
> Provide an option for user's to manually specify the socket address to DGID mapping on InfiniBand. Currently, all mappings are done using ipoib, and involve ARP. This will not work across IP subnets, and alternative mechanisms of resolving the mapping are being explored. The latter can be more efficient if combined with route resolution as well.
Sean,

If I understand correct your suggested changes are to optionally let an
application to - instead of the following sequence of calls

rdma_resolve_addr / addr resolved event
rdma_create_qp
rdma_resolve_route / route resolved event
rdma_connect / cm events

do

rdma_set_ib_path
rdma_create_qp
rdma_connect / cm events

So in that respect, I am not sure how rdma_set_dest serves you. Further,
rdma_resolve_addr does three resolutions

1. the local device and source gid
2. the PKEY (VLAN) to use
3. the destination gid

so in that respect, rdma_set_ib_path replaces both rdma_resolve_addr and
rdma_resolve_route?

I would prefer to have a solution where the app flow isn't touched,
something like the kernel rdma-cm to communicate with the user space ACM
daemon to get address and route resolutions. Does such a design makes
sense to you?

Or