]> git.ipfire.org Git - thirdparty/suricata.git/commit
Remove spinning PacketPoolWait 1374/head
authorVictor Julien <victor@inliniac.net>
Sat, 21 Feb 2015 13:19:48 +0000 (14:19 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 16 Mar 2015 13:17:29 +0000 (14:17 +0100)
commit5b8c94db3026bcfd324eaa6f61a1655358182667
treeafd44135dc43a063588b87bc2c7211645e444a6f
parent2d7f79a62bc1ad75dd5d97b1a43710a5b36552cc
Remove spinning PacketPoolWait

PacketPoolWait in autofp can wait for considerable time. Until now
it was essentially spinning, keeping the CPU 100% busy.

This patch introduces a condition to wait in such cases.

Atomically flag pool that consumer is waiting, so that we can sync
the pending pool right away instead of waiting for the
MAX_PENDING_RETURN_PACKETS limit.
src/tmqh-packetpool.c
src/tmqh-packetpool.h