]> git.openfabrics.org - ~shefty/librdmacm.git/commit
librdmacm: Support lazy initialization
authorSean Hefty <sean.hefty@intel.com>
Wed, 9 Apr 2014 19:19:25 +0000 (12:19 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 9 Apr 2014 19:19:25 +0000 (12:19 -0700)
commit23ffef06cf462c4c5ac4ec5880b96c8719b64774
tree09ed451c6b5c30d2dbe0bbedc3379ef8034dc899
parent984b1e3c189db9d156ea429c1726bd8739893247
librdmacm: Support lazy initialization

librdmacm currently opens a device context per configured HCA. This is
usually done in rdma_create_event_channel() or first time whenever
ucma_init() is called. If a process is only going to use one of the
configured HCAs/RDMA IPs then the remaining device contexts are not
used/required. Opening a device context on each device apriori limits the
maximum number of processes that can be supported on a node to the maximum
number of open context supported per HCA regardless of number of HCAs present
in the system.

Signed-off-by: Shamir Rabinovitch <shamir.rabinovitch@oracle.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/cma.c
src/cma.h