]> git.ipfire.org Git - thirdparty/suricata.git/commit
af-packet: speed up thread sync during startup
authorVictor Julien <vjulien@oisf.net>
Thu, 30 May 2024 14:02:28 +0000 (16:02 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 4 Dec 2024 13:49:46 +0000 (14:49 +0100)
commit923ad6af7709c9eca6f0f5856ee267845b425ae5
tree95adb13aa1c07d7b9a3d1e8f29df547f16a4bd93
parentb58b886db755c60c9616af64808c9f0983849106
af-packet: speed up thread sync during startup

Threads are initialized sequentially to allow for a predictable mapping
of threads and queues. Not all parts of the start up need to be done
sequentially. The setting up of the rings can be very expensive, taking
of a couple of hundred milliseconds. The ring setup doesn't need to be
done sequentially though.

This patch releases the thread early, after bind but before the ring
setups.

Ticket: #7272.
src/source-af-packet.c