Acked-by: Ankur Sharma <ankursha...@vmware.com> ________________________________________ From: dev <dev-boun...@openvswitch.org> on behalf of Nithin Raju <nit...@vmware.com> Sent: Tuesday, November 11, 2014 7:04 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 3/7] 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 <nit...@vmware.com> --- 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 8df2500..61f74c4 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. -- 1.7.4.1 _______________________________________________ dev mailing list dev@openvswitch.org https://urldefense.proofpoint.com/v2/url?u=http-3A__openvswitch.org_mailman_listinfo_dev&d=AAIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=RDZsrBxhAiOewDSD-jiF-W03FqHevF2o7haW6eQzmtA&m=OuedRIW0V8-hjx1jbnY8L0903PL80ogKj6gMxQlWSMM&s=fkdqiLrjTxhexkHzqntc0R8xA_eeJdEBOOjFi0YrA00&e= _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev