Squashed commit of the following:
commit
ffbbe26f3beb7a46b5bd3b9f2b28d3a2b8092a7a
Author: Kaushal Bhandankar <kbhandan@cisco.com>
Date: Tue Aug 18 08:56:11 2020 -0400
flow: reset the flow before removing
}
// we have a winner...
- hash_table->remove();
if ( flow->next )
unlink_uni(flow);
else
delete_stats.update(FlowDeleteState::ALLOWED);
+ flow->reset(true);
+ //The flow should not be removed from the hash before reset
+ hash_table->remove();
delete flow;
memory::MemoryCap::update_deallocations(sizeof(HashNode) + sizeof(FlowKey));
--flows_allocated;