datapath-windows: Rename 'vport->isPresentOnHv' to 'isAbsentOnHv'
authorNithin Raju <nithin@vmware.com>
Fri, 26 Jun 2015 18:51:29 +0000 (11:51 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 1 Jul 2015 21:13:46 +0000 (14:13 -0700)
commit421e24220fc9493683f75fafc7e2ced8ba60bf30
tree94de54bc0c6dec8c78897410c799ba84532dbf1e
parentb8155080abc546d3d0cac3f316929904e8737bc8
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>
datapath-windows/ovsext/Vport.c
datapath-windows/ovsext/Vport.h