diff options
author | Nithin Raju <nithin@vmware.com> | 2015-06-26 11:51:29 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2015-07-01 14:13:46 -0700 |
commit | 421e24220fc9493683f75fafc7e2ced8ba60bf30 (patch) | |
tree | 94de54bc0c6dec8c78897410c799ba84532dbf1e /datapath-windows/ovsext/Vport.h | |
parent | b8155080abc546d3d0cac3f316929904e8737bc8 (diff) | |
download | openvswitch-421e24220fc9493683f75fafc7e2ced8ba60bf30.tar.gz |
datapath-windows: Rename 'vport->isPresentOnHv' to 'isAbsentOnHv'
Looking at the code, the flag 'vport->isPresentOnHv' is actually
indicating if the vport is present on the Hyper-V switch or not, but the
logic seems to be inverse. 'isPresentOnHv == TRUE' indicates that the
vport is not present on the Hyper-V switch. Eg. VXLAN port, would have
isPresentOnHv == TRUE.
In this patch, we rename the variable to reflect its meaning.
vport->isAbsentOnHv is TRUE iff:
- vport is bridge internal port
- vport is tunnel port
- vport was added from Hyper-V and also from OVS, but got deleted from
Hyper-V
Signed-off-by: Nithin Raju <nithin@vmware.com>
Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath-windows/ovsext/Vport.h')
-rw-r--r-- | datapath-windows/ovsext/Vport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath-windows/ovsext/Vport.h b/datapath-windows/ovsext/Vport.h index 3ea3d0303..4c6e858b1 100644 --- a/datapath-windows/ovsext/Vport.h +++ b/datapath-windows/ovsext/Vport.h @@ -132,7 +132,7 @@ typedef struct _OVS_VPORT_ENTRY { BOOLEAN isExternal; UINT32 upcallPid; /* netlink upcall port id */ PNL_ATTR portOptions; - BOOLEAN isPresentOnHv; /* Is this port present on the + BOOLEAN isAbsentOnHv; /* Is this port present on the Hyper-V switch? */ } OVS_VPORT_ENTRY, *POVS_VPORT_ENTRY; |