]> xenbits.xensource.com Git - pvdrivers/win/xenvif.git/commitdiff
Remove test for HardwareInterface in FrontendGetInterfaceIndex()
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 14 Jul 2015 10:33:50 +0000 (11:33 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 14 Jul 2015 10:33:50 +0000 (11:33 +0100)
Apparently no interface in the mib table on Windows Server 2008 SP2 is
a hardware interface, even if it has (virtual) hardware.

Also add a missing \n to a trace statement.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenvif/frontend.c

index 257d314409df9081b3fc3907a41b360997b00108..b389b1c30b4260d49d7b424c058db066514aab8d 100644 (file)
@@ -471,8 +471,7 @@ FrontendGetInterfaceIndex(
     for (Index = 0; Index < Table->NumEntries; Index++) {
         Row = &Table->Table[Index];
 
-        if (!(Row->InterfaceAndOperStatusFlags.HardwareInterface) ||
-            !(Row->InterfaceAndOperStatusFlags.ConnectorPresent))
+        if (!Row->InterfaceAndOperStatusFlags.ConnectorPresent)
             continue;
 
         if (Row->OperStatus != IfOperStatusUp)
@@ -494,7 +493,7 @@ FrontendGetInterfaceIndex(
 found:
     *InterfaceIndex = Row->InterfaceIndex;
 
-    Trace("[%u]: %ws (%ws)",
+    Trace("[%u]: %ws (%ws)\n",
           Row->InterfaceIndex,
           Row->Alias,
           Row->Description);