]> git.openfabrics.org - ~shefty/libibverbs.git/commit
libibverbs: Support both OFED verbs and ibverbs
authorSean Hefty <sean.hefty@intel.com>
Thu, 22 Dec 2011 08:14:12 +0000 (00:14 -0800)
committerSean Hefty <sean.hefty@intel.com>
Thu, 22 Dec 2011 08:14:12 +0000 (00:14 -0800)
commitea0fdc0d9acb6371d6131f7103373f37bfc9bd37
tree87258c344a755791648258063d6a701efa4ffb61
parentff127a22f2a7e7190bde348b2ed38dd490ecfe20
libibverbs: Support both OFED verbs and ibverbs

From: Sean Hefty <sean.hefty@intel.com>

This patch allows libibverbs to support both libibverbs API that
shipped with OFED 1.5 and the upstream libibverbs API.  This
supports existing apps that are compiled against the upstream
libibverbs (ibverbs).  And in ideal cases, an application
coded to the OFED version of libibverbs (ofverbs) would only
need to be recompiled with 'CFLAGS=-DOFED_VERBS' given as a
configuration option.

Support for OFED verbs is done using macros that convert the OFED
APIs to ibverbs APIs.  In most cases, simple data casts are all
that are necessary, with XRC support being the primary exception.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Makefile.am
include/infiniband/ofverbs-defs.h [new file with mode: 0644]
include/infiniband/ofverbs.h [new file with mode: 0644]
include/infiniband/verbs.h
src/libibverbs.map
src/ofverbs.c [new file with mode: 0644]