1. HAVE_SPINLOCK_T is not used
2. OFED supports iWarp transport since v2.6.18
Signed-off-by: Peng Tao <tao.peng@emc.com>
Change-Id: Ieb5971f359b5d81b7dce3db8ea732ca33c6cbd53
Reviewed-on: http://review.whamcloud.com/2327
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Liang Zhen <liang@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
# lnet/utils/debug.c
AC_CHECK_HEADERS([linux/version.h])
-AC_CHECK_TYPE([spinlock_t],
- [AC_DEFINE(HAVE_SPINLOCK_T, 1, [spinlock_t is defined])],
- [],
- [#include <linux/spinlock.h>])
-
# lnet/utils/wirecheck.c
AC_CHECK_FUNCS([strnlen])
AC_MSG_RESULT(no)
])
- AC_MSG_CHECKING([if OFED supports iWarp transport])
- LB_LINUX_TRY_COMPILE([
- #include <linux/version.h>
- #include <linux/pci.h>
- #include <linux/gfp.h>
- #include <rdma/ib_verbs.h>
- ],[
- return RDMA_TRANSPORT_IWARP ==
- rdma_node_get_transport(RDMA_NODE_RNIC);
- ],[
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_OFED_TRANSPORT_IWARP, 1,
- [has transport iWARP])
- ],[
- AC_MSG_RESULT(no)
- ])
-
AC_MSG_CHECKING([if OFED has RDMA_CM_EVENT_ADDR_CHANGE])
LB_LINUX_TRY_COMPILE([
#include <linux/version.h>
return rc;
}
-#ifdef HAVE_OFED_TRANSPORT_IWARP
- /* XXX We can't trust this value returned by Chelsio driver, it's wrong
- * and we have reported the bug, remove these in the future when Chelsio
- * bug got fixed. */
- if (rdma_node_get_transport(hdev->ibh_ibdev->node_type) ==
- RDMA_TRANSPORT_IWARP)
- hdev->ibh_mr_size = (1ULL << 32) - 1;
-#endif
-
if (hdev->ibh_mr_size == ~0ULL) {
hdev->ibh_mr_shift = 64;
return 0;