Skip to content

Commit ddd6abe

Browse files
committed
++ cache
1 parent 00e2f4d commit ddd6abe

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

storage/cache.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,5 +604,12 @@ void NHTFlowCache::prefetch_export_expired() const
604604
__builtin_prefetch(m_flow_table[i], 0, 1);
605605
}
606606
}
607+
#ifdef WITH_CTT
608+
void NHTFlowCache::set_ctt_config(const std::string& device_name, unsigned comp_index) override;
609+
{
610+
m_ctt_device = device_name;
611+
m_ctt_comp_index = comp_index;
612+
}
613+
#endif /* WITH_CTT */
607614

608615
}

storage/cache.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,7 @@ class NHTFlowCache : TelemetryUtils, public StoragePlugin
118118
FlowRecordStats m_flow_record_stats = {};
119119
FlowCacheStats m_cache_stats = {};
120120
#ifdef WITH_CTT
121-
void set_ctt_config(const std::string& device_name, unsigned comp_index) {
122-
m_ctt_device = device_name;
123-
m_ctt_comp_index = comp_index;
124-
}
121+
void set_ctt_config(const std::string& device_name, unsigned comp_index) override;
125122
std::string m_ctt_device;
126123
unsigned m_ctt_comp_index;
127124
CttController m_ctt_controller;

0 commit comments

Comments
 (0)