datapath-windows/ovsext/Conntrack-nat.c
/*
 *----------------------------------------------------------------------------
 * OvsNatCleanup
 *     Releases all NAT related resources.
 *----------------------------------------------------------------------------
 */
OvsNatCleanup
Releases all NAT related resources.
OvsNatCleanup Releases all NAT related resources .
VOID OvsNatCleanup()
{
    if (ovsNatTable == NULL) {
       NdisFreeSpinLock(&ovsCtNatLock);
       return;
    }
    NdisAcquireSpinLock(&ovsCtNatLock);
    OvsFreeMemoryWithTag(ovsNatTable, OVS_CT_POOL_TAG);
    OvsFreeMemoryWithTag(ovsUnNatTable, OVS_CT_POOL_TAG);
    ovsNatTable = NULL;
    ovsUnNatTable = NULL;
    NdisReleaseSpinLock(&ovsCtNatLock);
    NdisFreeSpinLock(&ovsCtNatLock);
}
VOID OvsNatCleanup ( ) { if ( ovsNatTable == NULL ) { NdisFreeSpinLock ( & ovsCtNatLock ) ; return ; } NdisAcquireSpinLock ( & ovsCtNatLock ) ; OvsFreeMemoryWithTag ( ovsNatTable , OVS_CT_POOL_TAG ) ; OvsFreeMemoryWithTag ( ovsUnNatTable , OVS_CT_POOL_TAG ) ; ovsNatTable = NULL ; ovsUnNatTable = NULL ; NdisReleaseSpinLock ( & ovsCtNatLock ) ; NdisFreeSpinLock ( & ovsCtNatLock ) ; }
OvsNatCleanup
     Releases all NAT related resources.
OvsNatCleanup Releases all NAT related resources .