Skip to content

Commit 6e22ef2

Browse files
committed
++ cache
1 parent 7aeb6f1 commit 6e22ef2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/cache.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,6 @@ int NHTFlowCache::put_pkt(Packet& packet)
515515
try_to_fill_ports_to_fragmented_packet(packet);
516516
}
517517

518-
prefetch_export_expired();
519-
520518
if (!check_ip_version(packet)) {
521519
return 0;
522520
}
@@ -525,6 +523,8 @@ int NHTFlowCache::put_pkt(Packet& packet)
525523
const std::variant<FlowKeyv4, FlowKeyv6> reversed_key = *FlowKeyFactory::create_reversed_key(&packet.src_ip, &packet.dst_ip,
526524
packet.src_port, packet.dst_port, packet.ip_proto, static_cast<IP>(packet.ip_version));
527525

526+
prefetch_export_expired();
527+
528528
auto [row, flow_identification] =
529529
find_flow_index(direct_key, reversed_key, packet.vlan_id);
530530

0 commit comments

Comments
 (0)