[openib-general] [PATCH] Allow for support of alternative MAD layers in build process
Hal Rosenstock
halr at voltaire.com
Tue Sep 14 12:22:10 PDT 2004
Aloow for support of alternative MAD layers in build process
This is just to get started as ib_mad_send will need replacing with an
ib_post_send_mad (from OpenIB).
(This patch is for Roland's branch.)
Index: mthca_mad.c
===================================================================
--- mthca_mad.c (revision 831)
+++ mthca_mad.c (working copy)
@@ -90,7 +90,9 @@
in_mad->sqpn = 0;
in_mad->dlid = sm_path.sm_lid;
in_mad->completion_func = NULL;
+#ifndef OPENIB_ACCESS_LAYER
ib_mad_send(in_mad);
+#endif
}
return IB_MAD_RESULT_SUCCESS | IB_MAD_RESULT_CONSUMED;
Index: Makefile
===================================================================
--- Makefile (revision 831)
+++ Makefile (working copy)
@@ -4,6 +4,10 @@
EXTRA_CFLAGS += -DDEBUG
endif
+ifdef CONFIG_INFINIBAND_ACCESS_LAYER
+EXTRA_CFLAGS += -DOPENIB_ACCESS_LAYER
+endif
+
obj-$(CONFIG_INFINIBAND_MTHCA) += ib_mthca.o
ib_mthca-objs := \
More information about the general
mailing list