[ovs-dev] datapath-windows: fix NULL check in OvsGetExtInfoIoctl()
diff mbox

Message ID A72F304F698C474CA65707A3507A0C9547EBA2@CBSEX1.cloudbase.local
State Not Applicable
Headers show

Commit Message

Sorin Vinturis Oct. 20, 2015, 10:25 a.m. UTC
Acked-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>


-----Original Message-----
From: dev [mailto:dev-bounces@openvswitch.org] On Behalf Of Nithin Raju

Sent: Tuesday, 20 October, 2015 01:16
To: dev@openvswitch.org
Subject: [ovs-dev] [PATCH] datapath-windows: fix NULL check in OvsGetExtInfoIoctl()

End result is that "mac_in_use" column gets populated in OVSDB for internal and external NICs.

Signed-off-by: Nithin Raju <nithin@vmware.com>

---
 datapath-windows/ovsext/Vport.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
1.8.5.6

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Patch
diff mbox

diff --git a/datapath-windows/ovsext/Vport.c b/datapath-windows/ovsext/Vport.c index baab056..4ade842 100644
--- a/datapath-windows/ovsext/Vport.c
+++ b/datapath-windows/ovsext/Vport.c
@@ -1542,7 +1542,7 @@  OvsGetExtInfoIoctl(POVS_VPORT_GET vportGet,
     if (vportGet->portNo == 0) {
         StringCbLengthA(vportGet->name, OVS_MAX_PORT_NAME_LENGTH - 1, &len);
         vport = OvsFindVportByHvNameA(gOvsSwitchContext, vportGet->name);
-        if (vport != NULL) {
+        if (vport == NULL) {
             /* If the port is not a Hyper-V port and it has been added earlier,
              * we'll find it in 'ovsPortNameHashArray'. */
             vport = OvsFindVportByOvsName(gOvsSwitchContext, vportGet->name);