]> git.proxmox.com Git - ovs.git/commitdiff
windows: netdev report error if query failed
authorAlin Serdean <aserdean@cloudbasesolutions.com>
Wed, 8 Feb 2017 06:41:24 +0000 (06:41 +0000)
committerGurucharan Shetty <guru@ovn.org>
Wed, 8 Feb 2017 18:16:12 +0000 (10:16 -0800)
The netdev Windows construct uses query_netdev to see if a port exists
in the datapath, in the case an error occurred in the reply message
we returned 0, meaning netdev_open was successful.

This patch fixes fixes that problem.

Reported-at: https://github.com/openvswitch/ovs-issues/issues/125
Reported-by: Shashank Ram <rams@vmware.com>
Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Acked-By: Shashank Ram <rams@vmware.com>
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
lib/netdev-windows.c

index c2fbe42249fb166c88132d69f60a845865a7893b..b22bd09b95caa912288bbe5f125b9cbb9eee4b06 100644 (file)
@@ -295,7 +295,7 @@ query_netdev(const char *devname,
         }
     }
 
-    return 0;
+    return error;
 }
 
 static void