From 827e07be2e969354267f8383cc708b1edbe4dd49 Mon Sep 17 00:00:00 2001 From: Nithin Raju Date: Tue, 18 Nov 2014 17:42:46 -0800 Subject: datapath-windows: Changes to InitOvsVportCommon() If a Hyper-V port (for which there exists an OVS port), gets deleted and re-added, we'll call into InitOvsVportCommon() for the port to insert the port into the 'portIdHashArray' as well as do a few other initialization in the switch ocntext. We should not be incrementing 'numHvPorts' at this point since this vport has been counted before when it was first allocated. To account for this, we add a new parameter to InitOvsVportCommon(). The arguments passed by some of the callers are not 100% correct, and will be fixed in future commit in the series. Signed-off-by: Nithin Raju Acked-by: Ankur Sharma Signed-off-by: Gurucharan Shetty --- datapath-windows/ovsext/Vport.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'datapath-windows/ovsext/Vport.h') diff --git a/datapath-windows/ovsext/Vport.h b/datapath-windows/ovsext/Vport.h index 4ee41e47d..911029245 100644 --- a/datapath-windows/ovsext/Vport.h +++ b/datapath-windows/ovsext/Vport.h @@ -211,8 +211,6 @@ VOID OvsRemoveAndDeleteVport(POVS_SWITCH_CONTEXT switchContext, BOOLEAN hvDelete, BOOLEAN ovsDelete, BOOLEAN *vportDeallocated); -NDIS_STATUS InitHvVportCommon(POVS_SWITCH_CONTEXT switchContext, - POVS_VPORT_ENTRY vport); NDIS_STATUS InitOvsVportCommon(POVS_SWITCH_CONTEXT switchContext, POVS_VPORT_ENTRY vport); NTSTATUS OvsInitTunnelVport(POVS_VPORT_ENTRY vport, OVS_VPORT_TYPE ovsType, -- cgit v1.2.1