2 AC_DEFUN([LN_CONFIG_OFED_SPEC],
4 AC_MSG_CHECKING([if OFED has ib_dma_map_single])
6 #include <linux/version.h>
11 #include <rdma/ib_verbs.h>
13 ib_dma_map_single(NULL, NULL, 0, 0);
17 AC_DEFINE(HAVE_OFED_IB_DMA_MAP, 1,
18 [ib_dma_map_single defined])
23 AC_MSG_CHECKING([if ib_create_cq wants comp_vector])
24 LB_LINUX_TRY_COMPILE([
25 #include <linux/version.h>
26 #include <linux/pci.h>
30 #include <rdma/ib_verbs.h>
32 ib_create_cq(NULL, NULL, NULL, NULL, 0, 0);
36 AC_DEFINE(HAVE_OFED_IB_COMP_VECTOR, 1,
37 [has completion vector])
42 AC_MSG_CHECKING([if OFED supports iWarp transport])
43 LB_LINUX_TRY_COMPILE([
44 #include <linux/version.h>
45 #include <linux/pci.h>
49 #include <rdma/ib_verbs.h>
51 return RDMA_TRANSPORT_IWARP ==
52 rdma_node_get_transport(RDMA_NODE_RNIC);
55 AC_DEFINE(HAVE_OFED_TRANSPORT_IWARP, 1,
56 [has transport iWARP])
61 AC_MSG_CHECKING([if OFED has RDMA_CM_EVENT_ADDR_CHANGE])
62 LB_LINUX_TRY_COMPILE([
63 #include <linux/version.h>
64 #include <linux/pci.h>
68 #include <rdma/rdma_cm.h>
70 return (RDMA_CM_EVENT_ADDR_CHANGE == 0);
73 AC_DEFINE(HAVE_OFED_RDMA_CMEV_ADDRCHANGE, 1,
74 [has completion vector])
79 AC_MSG_CHECKING([if OFED has RDMA_CM_EVENT_TIMEWAIT_EXIT])
80 LB_LINUX_TRY_COMPILE([
81 #include <linux/version.h>
82 #include <linux/pci.h>
86 #include <rdma/rdma_cm.h>
88 return (RDMA_CM_EVENT_TIMEWAIT_EXIT == 0);
91 AC_DEFINE(HAVE_OFED_RDMA_CMEV_TIMEWAIT_EXIT, 1,
92 [has completion vector])