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:14:10 +0000 (14:14 -0700)
commitb21f6c9b112d87bd921d8ad8d2be5e1ba007c24b
treea2eba09f192d2f7a8ececf5472a99f82020c99c1
parent77c26185559f2cfdef95efc3b5d203382ee7b969
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