[rds-devel] [PATCH]: Add depend check of infinibind
Joe Jin
joe.jin at oracle.com
Tue Aug 29 20:03:39 PDT 2006
Hi,
My kernel dont configured INFINIBIND, and when I compiled and insert the module,
follow errors reported:
rds: Unknown symbol ib_create_cq
rds: Unknown symbol rdma_resolve_addr
rds: Unknown symbol rdma_disconnect
rds: Unknown symbol rdma_resolve_route
rds: Unknown symbol rdma_bind_addr
rds: Unknown symbol rdma_create_qp
rds: Unknown symbol ib_destroy_cq
rds: Unknown symbol rdma_create_id
rds: Unknown symbol rdma_listen
rds: Unknown symbol rdma_destroy_qp
rds: Unknown symbol ib_get_dma_mr
rds: Unknown symbol ib_alloc_pd
rds: Unknown symbol rdma_connect
rds: Unknown symbol rdma_destroy_id
rds: Unknown symbol rdma_accept
rds: Unknown symbol ib_dealloc_pd
from the source I known it must have INFINIBIND support.
however, the configure and Kconfig(for kernel patch?) never check it.
next patch should use for this check, pls apply it.
Regards.
Joe.Jin
diff -urN new/configure.in old/configure.in
--- new/configure.in 2006-08-30 10:43:32.000000000 +0800
+++ old/configure.in 2006-08-30 10:44:46.000000000 +0800
@@ -84,6 +84,11 @@
AC_MSG_ERROR(No configured kernel include tree found)
fi
+source $KERNELSRC/.config
+if test "x$CONFIG_INFINIBAND" = "x" ; then
+ AC_MSG_ERROR(RDS need INFINIBAND support)
+fi
+
KERNEL_COMPAT_HEADER(__skb_checksum_complete, linux/skbuff.h)
KERNEL_COMPAT_HEADER(skb_queue_reverse_walk, linux/skbuff.h)
KERNEL_COMPAT_HEADER(assert_spin_locked, linux/spinlock_api_smp.h)
diff -urN new/linux/net/rds/Kconfig old/linux/net/rds/Kconfig
--- new/linux/net/rds/Kconfig 2006-08-30 10:43:32.000000000 +0800
+++ old/linux/net/rds/Kconfig 2006-08-30 10:45:31.000000000 +0800
@@ -1,6 +1,6 @@
config RDS
tristate "Reliable Datagram Sockets (RDS) (EXPERIMENTAL)"
- depends on EXPERIMENTAL
+ depends on EXPERIMENTAL && INFINIBAND
---help---
put some help text here
More information about the rds-devel
mailing list