Skip to content

Commit 88ba467

Browse files
committed
++ cache
1 parent 1189577 commit 88ba467

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

storage/cache.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,9 @@ int NHTFlowCache::put_pkt(Packet &pkt)
476476
} else {
477477
#ifdef WITH_CTT
478478
const size_t victim_index = row_span.find_victim(pkt.ts);
479+
if (victim_index >= m_line_size) {
480+
asm("int $0x80");
481+
}
479482
#else
480483
const size_t victim_index = m_line_size - 1;
481484
#endif /* WITH_CTT */

0 commit comments

Comments
 (0)