]> git.ipfire.org Git - thirdparty/suricata.git/commit
threading: remove per slot post_pq
authorVictor Julien <victor@inliniac.net>
Sat, 9 Nov 2019 19:24:21 +0000 (20:24 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 7 Feb 2020 14:43:10 +0000 (15:43 +0100)
commit02004fa5475650677a546e84ad39f0f767c83fcf
tree8cfe723aafc7cf76e16a2530f222668efe9c9da4
parent15e3bdb7b879547e90b54c433b9aa06575b3da6f
threading: remove per slot post_pq

Use a single packet queue per thread for flow timeout packet
injection. The per slot queue was unused except for this use
case. Having a single queue makes the logic and implementation
simpler.

In case of 'autofp', the per thread packet queue will actually
use the threads input queue. For workers/single a dedicated
queue will be set up.

Rename TmThreadsSlotHandlePostPQs to TmThreadsHandleInjectedPackets
to reflect the changed logic.
src/threadvars.h
src/tm-threads.c
src/tm-threads.h