Acked-by: Alin Gabriel Serdean <aserd...@cloudbasesolutions.com> Tested-by: Alin Gabriel Serdean <aserd...@cloudbasesolutions.com>
-----Mesaj original----- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Nithin Raju Trimis: Monday, October 13, 2014 6:56 AM Către: dev@openvswitch.org Subiect: [ovs-dev] [PATCH 5/6] datapath-windows: delete ports from portIdHashArray during cleanup Signed-off-by: Nithin Raju <nit...@vmware.com> --- datapath-windows/ovsext/Vport.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/datapath-windows/ovsext/Vport.c b/datapath-windows/ovsext/Vport.c index 61fa71d..9dfbf51 100644 --- a/datapath-windows/ovsext/Vport.c +++ b/datapath-windows/ovsext/Vport.c @@ -913,12 +913,12 @@ VOID OvsClearAllSwitchVports(POVS_SWITCH_CONTEXT switchContext) { for (UINT hash = 0; hash < OVS_MAX_VPORT_ARRAY_SIZE; hash) { - PLIST_ENTRY head, link; + PLIST_ENTRY head, link, next; - head = &(switchContext->portNoHashArray[hash & OVS_VPORT_MASK]); - LIST_FORALL(head, link) { + head = &(switchContext->portIdHashArray[hash & OVS_VPORT_MASK]); + LIST_FORALL_SAFE(head, link, next) { POVS_VPORT_ENTRY vport; - vport = CONTAINING_RECORD(link, OVS_VPORT_ENTRY, portNoLink); + vport = CONTAINING_RECORD(link, OVS_VPORT_ENTRY, + portIdLink); OvsRemoveAndDeleteVport(switchContext, vport); } } -- 1.7.4.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev