]> git.ipfire.org Git - thirdparty/suricata.git/commit
flow/timeout: use single packet for timeout handling
authorVictor Julien <vjulien@oisf.net>
Mon, 25 Sep 2023 09:58:03 +0000 (11:58 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 1 Dec 2023 13:55:43 +0000 (14:55 +0100)
commitea4503c3e3be351eddc1205a8aec01c8c301fdfa
tree95718e9f9c32361ea5d033941a35edba914eda48
parent2a4fd85d1d2ab27234e1e4fecdd33afc00af0b87
flow/timeout: use single packet for timeout handling

In the FlowFinish logic, one or two pseudo packets are used to finish flow
handling. In the case of 2 (one per direction), the logic first set up the
2 packets, then it would process them one by one. This lead to poor cache
locality.

This patch processes the first packet entirely first, followed by the second
packet.
src/flow-worker.c