Compiles now against vanilla 2.6.18 kernel headers.
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 29 Jun 2009 19:00:10 +0000 (19:00 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 29 Jun 2009 19:00:10 +0000 (19:00 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@926 d57e44dd-8a1f-0410-8b47-8ef2f437770f

srpt/src/ib_srpt.c

index bf8e550..d4a0458 100644 (file)
@@ -156,7 +156,13 @@ static void srpt_qp_event(struct ib_event *event, void *ctx)
 
        switch (event->event) {
        case IB_EVENT_COMM_EST:
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20) || defined(BACKPORT_LINUX_WORKQUEUE_TO_2_6_19)
                ib_cm_notify(ch->cm_id, event->event);
+#else
+               /* Vanilla 2.6.19 kernel (or before) without OFED. */
+               printk(KERN_ERR PFX "how to perform ib_cm_notify() on a"
+                       " vanilla 2.6.18 kernel ???\n");
+#endif
                break;
        case IB_EVENT_QP_LAST_WQE_REACHED:
                if (ch->state == RDMA_CHANNEL_LIVE) {