]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[infiniband] Poll event queues only for devices that are open
authorMichael Brown <mcb30@ipxe.org>
Mon, 14 Nov 2011 23:43:24 +0000 (23:43 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 15 Nov 2011 03:59:09 +0000 (03:59 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/infiniband.c

index c88da73e685488f7a7a2f2790fd53a9dc42eef38..85084b0238757de7bf46a06cddbbda84c26454bd 100644 (file)
@@ -861,7 +861,7 @@ void ib_poll_eq ( struct ib_device *ibdev ) {
 static void ib_step ( struct process *process __unused ) {
        struct ib_device *ibdev;
 
-       for_each_ibdev ( ibdev )
+       list_for_each_entry ( ibdev, &open_ib_devices, open_list )
                ib_poll_eq ( ibdev );
 }