File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ void NHTFlowCache::push_to_export_queue(size_t flow_index) noexcept
170170
171171void NHTFlowCache::finish ()
172172{
173- std::for_each_n (m_flow_table.begin (), m_cache_size, [this ](FlowRecord*& flow_record) {
173+ std::for_each (m_flow_table.begin (), m_flow_table. begin () + m_cache_size, [this ](FlowRecord*& flow_record) {
174174 if (!flow_record->is_empty ()) {
175175#ifdef WITH_CTT
176176 if (flow_record->is_in_ctt && !flow_record->is_waiting_for_export ) {
@@ -484,7 +484,7 @@ void NHTFlowCache::export_external(const Packet& pkt) noexcept
484484
485485 update_ctt_export_stats (export_data->reason , export_data->mu_reason );
486486
487- if (( is_counter_overflow (export_data->reason , export_data->mu_reason )) {
487+ if (is_counter_overflow (export_data->reason , export_data->mu_reason )) {
488488 if (m_flow_table[flow_index.value ()]->offload_mode == OffloadMode::TRIMMED_PACKET_WITH_METADATA_AND_EXPORT) {
489489 return ;
490490 }
@@ -570,7 +570,7 @@ int NHTFlowCache::put_pkt(Packet& packet)
570570#ifdef WITH_CTT
571571 if (m_flow_table[flow_index]->is_in_ctt && !m_flow_table[flow_index]->is_waiting_for_export ) {
572572 m_flow_table[flow_index]->is_waiting_for_export = true ;
573- remove_record_without_notification (m_flow_table[flow_index]->m_flow .flow_hash_ctt );
573+ m_ctt_controller-> remove_record_without_notification (m_flow_table[flow_index]->m_flow .flow_hash_ctt );
574574 m_flow_table[flow_index]->export_time = {packet.ts .tv_sec + 1 , packet.ts .tv_usec };
575575 }
576576#endif /* WITH_CTT */
You can’t perform that action at this time.
0 commit comments