]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[hermon] Set event queue number for completion queues
authorMichael Brown <mcb30@ipxe.org>
Sun, 12 Sep 2010 16:35:35 +0000 (17:35 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sun, 12 Sep 2010 21:35:42 +0000 (22:35 +0100)
Give completion queues a chance to deliver exception events by
programming in the number of our event queue (currently used only for
port state changes).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/infiniband/hermon.c

index 49894334b9e0320659104a2de999e114588013e7..5db494279844fc1d18734351f35d1c0614f06691 100644 (file)
@@ -798,6 +798,7 @@ static int hermon_create_cq ( struct ib_device *ibdev,
        MLX_FILL_2 ( &cqctx, 3,
                     usr_page, HERMON_UAR_NON_EQ_PAGE,
                     log_cq_size, fls ( cq->num_cqes - 1 ) );
+       MLX_FILL_1 ( &cqctx, 5, c_eqn, hermon->eq.eqn );
        MLX_FILL_1 ( &cqctx, 7, mtt_base_addr_l,
                     ( hermon_cq->mtt.mtt_base_addr >> 3 ) );
        MLX_FILL_1 ( &cqctx, 15, db_record_addr_l,