]> git.openfabrics.org - ~ardavis/dapl.git/commit
cma: long delays when opening cma provider with no IPoIB configured
authorArlin Davis <arlin.r.davis@intel.com>
Tue, 8 Jul 2014 23:14:51 +0000 (16:14 -0700)
committerArlin Davis <arlin.r.davis@intel.com>
Tue, 8 Jul 2014 23:14:51 +0000 (16:14 -0700)
commite1360797208bcdd824945ee9b858d307bf5bd096
treeeedda8d2741bd493876199668b46189c37691ac5
parente01796baa6b0f6cf0e1fb310d2c42d3446898c24
cma: long delays when opening cma provider with no IPoIB configured

The rdma_cm provider (ofa-v2-ib0) can take netdev, ip address, or hostname
for local address bindings. When trying to open a non-existent netdev (ib0)
the provider will fall through and use the getaddrinfo sys call assuming
dat.conf parameter is either an IP address or hostname and not a netdev.

This patch changes getipaddr() error handling when opening the cma provider
on a non-existant netdev. It will only call getaddrinfo with AI_CANONNAME
hints after checking for a valid hostname.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
dapl/openib_cma/device.c