|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [win-pv-devel] [PATCH] 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 <paul.durrant@xxxxxxxxxx>
---
src/xenvif/frontend.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
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);
--
2.1.1
_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |