From: Paul Durrant Date: Tue, 14 Jul 2015 10:33:50 +0000 (+0100) Subject: Remove test for HardwareInterface in FrontendGetInterfaceIndex() X-Git-Tag: 8.1.0-rc1~19 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6632cc823ffd20e06957b56e66d29e1c6327f82b;p=people%2Fpauldu%2Fxenvif.git Remove test for HardwareInterface in FrontendGetInterfaceIndex() 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 --- diff --git a/src/xenvif/frontend.c b/src/xenvif/frontend.c index 257d314..b389b1c 100644 --- a/src/xenvif/frontend.c +++ b/src/xenvif/frontend.c @@ -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);