Whamcloud - gitweb
LU-778 o2iblnd: Add rdma_create_id() compatibility macro 2.1.1-RC2 v2_1_1_0_RC2
authorNed Bass <bass6@llnl.gov>
Wed, 19 Oct 2011 21:47:50 +0000 (14:47 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 10 Feb 2012 07:41:44 +0000 (02:41 -0500)
commitd3d68d5f81f63355b4695eebbf7e39ae7447c9e7
tree71afc57c47c04d67151dc9b157eed8211c383605
parent4554b6509de928643d104e2ec9bd70e627e6cd82
LU-778 o2iblnd: Add rdma_create_id() compatibility macro

As of RHEL6.2 kernel 2.6.32-204.el6, rdma_create_id() requires a
queue-pair type as a fourth argument.  This was previously inferred
from the rdma_port_space argument.  Add an autoconf test to detect
whether the fourth argument is expected and a compatibility macro
that discards the QP type argument if the 3-argument version of
rdma_create_id() is present.

Change-Id: Idb668e1f059954ecc994ad59b366d54da8b82dc8
Signed-off-by: Ned Bass <bass6@llnl.gov>
Reviewed-on: http://review.whamcloud.com/1556
Tested-by: Hudson
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Christopher J. Morrone <chris.morrone.llnl@gmail.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/autoconf/lustre-lnet.m4
lnet/klnds/o2iblnd/o2iblnd.c
lnet/klnds/o2iblnd/o2iblnd.h
lnet/klnds/o2iblnd/o2iblnd_cb.c