diff options
author | Nithin Raju <nithin@vmware.com> | 2015-10-19 15:15:40 -0700 |
---|---|---|
committer | Gurucharan Shetty <gshetty@nicira.com> | 2015-10-21 16:27:27 -0700 |
commit | f3e4015fee33d8af7db1f1f9d199abe7fc00d04d (patch) | |
tree | 54fe90959b17bd70485909168b85d68024f75fe5 | |
parent | 6bb4a18e6c34180f42d3f55b91ac884e1b1a2da9 (diff) |
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>
Acked-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Acked-by: Sairam Venugopal <vsairam@vmware.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
-rw-r--r-- | datapath-windows/ovsext/Vport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath-windows/ovsext/Vport.c b/datapath-windows/ovsext/Vport.c index baab05628..4ade842a9 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); |