]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[UAL] Propagate CQ affiliated event notifications to user-mode as requested.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 19 Sep 2006 23:09:53 +0000 (23:09 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 19 Sep 2006 23:09:53 +0000 (23:09 +0000)
Submitted by Leonid Keller (leonid@mellanox.co.il)

git-svn-id: svn://openib.tc.cornell.edu/gen1@498 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/core/al/user/ual_cq.c

index 2dc2aacb47c017bd499e9c398c94deb2d13feeef..c21ddeaf208ed453f5f98b3158b257002e3f1672 100644 (file)
@@ -79,6 +79,7 @@ ual_create_cq(
        cq_ioctl.in.size = p_cq_create->size;\r
        cq_ioctl.in.h_wait_obj = p_cq_create->h_wait_obj;\r
        cq_ioctl.in.context = h_cq;\r
+       cq_ioctl.in.ev_notify = (h_cq->pfn_event_cb != NULL) ? TRUE : FALSE;\r
 \r
        cl_status = do_al_dev_ioctl( UAL_CREATE_CQ,\r
                &cq_ioctl.in, sizeof(cq_ioctl.in), &cq_ioctl.out, sizeof(cq_ioctl.out),\r
@@ -278,7 +279,6 @@ ual_modify_cq(
                status = cq_ioctl.out.status;\r
                if( status == IB_SUCCESS )\r
                        *p_size = cq_ioctl.out.size;\r
-\r
        }\r
 \r
        /* Post uvp call */\r