diff options
author | Nithin Raju <nithin@vmware.com> | 2014-11-18 17:42:44 -0800 |
---|---|---|
committer | Gurucharan Shetty <gshetty@nicira.com> | 2014-11-20 07:11:07 -0800 |
commit | 0b931c1cb2e90f5f75093ece8d06e1a931fdc94c (patch) | |
tree | febc0ab78317cfaaa95eff57ab32bece59d2a991 /datapath-windows/ovsext/Switch.h | |
parent | 70e562509a4df0a46012999845cb0b96b676e602 (diff) | |
download | openvswitch-0b931c1cb2e90f5f75093ece8d06e1a931fdc94c.tar.gz |
datapath-windows: clarify 'portIdHashArray' in the swithc context
In this patch, we update the documentation for 'portIdHashArray' to
indicate that a vport would exist in this hash table if and only if it
also exists on the Hyper-V switch.
This functionality to implement this semantic will follow in subsequent
patches.
Signed-off-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Diffstat (limited to 'datapath-windows/ovsext/Switch.h')
-rw-r--r-- | datapath-windows/ovsext/Switch.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/datapath-windows/ovsext/Switch.h b/datapath-windows/ovsext/Switch.h index 8df250089..61f74c4ff 100644 --- a/datapath-windows/ovsext/Switch.h +++ b/datapath-windows/ovsext/Switch.h @@ -136,7 +136,10 @@ typedef struct _OVS_SWITCH_CONTEXT /* * 'portIdHashArray' ONLY contains ports that exist on the Hyper-V switch, * namely: VIF (vNIC) ports, external port and Hyper-V internal port. - * 'numHvVports' counts the ports in 'portIdHashArray'. + * 'numHvVports' counts the ports in 'portIdHashArray'. If a port got + * deleted on the Hyper-V switch, it gets deleted from 'portIdHashArray'. + * The port itself will not get deallocated if it has been added from OVS + * userspace. 'numHvVports' is decremented when the port is deallocated. * * 'portNoHashArray' ONLY contains ports that are added from OVS userspace, * regardless of whether that port exists on the Hyper-V switch or not. |