Skip to content

Commit

Permalink
datapath-windows: fix NULL check in OvsGetExtInfoIoctl()
Browse files Browse the repository at this point in the history
End result is that "mac_in_use" column gets populated in
OVSDB for internal and external NICs.

Signed-off-by: Nithin Raju <[email protected]>
Acked-by: Sorin Vinturis <[email protected]>
Acked-by: Sairam Venugopal <[email protected]>
Signed-off-by: Gurucharan Shetty <[email protected]>
  • Loading branch information
nithinrajub authored and shettyg committed Oct 21, 2015
1 parent 6bb4a18 commit f3e4015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datapath-windows/ovsext/Vport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f3e4015

Please sign in to comment.