]> git.openfabrics.org - ~shefty/ibacm.git/commit
ibacm: Open a provider ep only if an address is assigned to the core ep.
authorKaike Wan <kaike.wan@intel.com>
Tue, 13 May 2014 23:50:45 +0000 (16:50 -0700)
committerSean Hefty <sean.hefty@intel.com>
Tue, 13 May 2014 23:50:45 +0000 (16:50 -0700)
commitb1b6ad25176a77cca8bc25282f8fb69ba849b1cc
treeb5181d04584c24b638edded9df1d4515d12fbc93
parentd59dd798cf2f9e9056074824455bcf3986f45716
ibacm: Open a provider ep only if an address is assigned to the core ep.

The function acm_assign_ep_names() should not return 0 when there is no valid
address assigned to the core ep. In this case, the provider's
ep should not be up (or acmp_ep_up() should not be called). However, when
there is at least one address assigned, 0 should be returned so that the
core endpoint and the provider endpoint should be created.

Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/acm.c