]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
winverbs: store devices in order that they are added
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 30 Sep 2009 22:35:57 +0000 (22:35 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 30 Sep 2009 22:35:57 +0000 (22:35 +0000)
Maintaining and reporting devices in the same order that they are seen by the driver assists users in mapping IPoIB devices to verbs.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2481 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/core/winverbs/kernel/wv_driver.c

index ee96f19bc6dc2357bb782c002d98ff6f36e72a3d..d5321602cb8f05d3237f723c8a1b19f3db9c22ed 100644 (file)
@@ -486,7 +486,7 @@ static NTSTATUS WvPowerD0Entry(WDFDEVICE Device, WDF_POWER_DEVICE_STATE Previous
 \r
        KeAcquireGuardedMutex(&Lock);\r
        create = IsListEmpty(&DevList);\r
-       InsertHeadList(&DevList, &dev->Entry);\r
+       InsertTailList(&DevList, &dev->Entry);\r
        KeReleaseGuardedMutex(&Lock);\r
 \r
        if (create) {\r