diff mbox

[ovs-dev] windows: Broken internal netdevs

Message ID DM2PR0501MB1020A68A3E8972772F141E8BB35D0@DM2PR0501MB1020.namprd05.prod.outlook.com
State Not Applicable
Headers show

Commit Message

Nithin Raju Feb. 17, 2017, 8:55 p.m. UTC
Thanks for the fix.

Acked-by: Nithin Raju <Nithin@vmware.com>
diff mbox

Patch

diff --git a/lib/netdev-windows.c b/lib/netdev-windows.c
index b22bd09..375cb32 100644
--- a/lib/netdev-windows.c
+++ b/lib/netdev-windows.c
@@ -159,7 +159,10 @@  netdev_windows_system_construct(struct netdev *netdev_)

     /* Query the attributes and runtime status of the netdev. */
     ret = query_netdev(netdev_get_name(&netdev->up), &info, &buf);
-    if (ret) {
+    /* "Internal" netdevs do not exist in the kernel yet.  They need to be
+     * transformed into a netdev object and passed to dpif_port_add(), which
+     * will add them to the kernel.  */
+    if (strcmp(netdev_get_type(&netdev->up), "internal") && ret) {
         return ret;
     }
     ofpbuf_delete(buf);