]> git.openfabrics.org - ~shefty/ibacm.git/commit
ibacm: Centralize provider SA access in core.
authorSean Hefty <sean.hefty@intel.com>
Wed, 4 Jun 2014 18:39:36 +0000 (11:39 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 4 Jun 2014 18:39:36 +0000 (11:39 -0700)
commitf490dc7109f52e841df6e7d6d083537dc0b8b9a5
tree0505a80b16bff66cd3e117826720d833ef960152
parenta0943dc0d56fc14ac4616880fc7d7a6d8e95e330
ibacm: Centralize provider SA access in core.

This patch is the first of a series to centralize the SA access for all
providers.

Here is the description of the approach:
(1) A provider will call the core to allocate a request and initialize
    the request (including the callback function);
(2) Provider calls the core to send the SA request;
(3) The core SA handler thread will poll for any SA response;
(4) When a SA response is received, the core SA handler will find the
    matching request and call the corresponding provider callback
    function;
(5) The provider callback will handle the SA response and free the
    SA request.

The approach has the following advantages:
(1) No code duplication in the provider for SA access;
(2) No need for a separate thread in the provider to wait for SA response.

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