Go to the documentation of this file.
24 #ifndef SURICATA_TMQH_PACKETPOOL_H
25 #define SURICATA_TMQH_PACKETPOOL_H
60 #ifdef DEBUG_VALIDATION
void TmqhPacketpoolRegister(void)
TmqhPacketpoolRegister \initonly.
simple fifo queue for packets with mutex and cond Calling the mutex or triggering the cond is respons...
Packet * PacketPoolGetPacket(void)
Get a new packet from the packet pool.
SC_ATOMIC_DECLARE(uint32_t, return_threshold)
void PacketPoolInit(void)
void PacketPoolDestroy(void)
void PacketPoolPostRunmodes(void)
Set the max_pending_return_packets value.
Per thread variable structure.
struct PktPoolLockedStack_ __attribute__((aligned(CLS))) PktPoolLockedStack
void PacketPoolWait(void)
PktPoolLockedStack return_stack
void TmqhReleasePacketsToPacketPool(PacketQueue *)
Release all the packets in the queue back to the packetpool. Mainly used by threads that have failed,...
struct PktPool_ * pending_pool
void PacketPoolReturnPacket(Packet *p)
Return packet to Packet pool.
void TmqhOutputPacketpool(ThreadVars *, Packet *)
Packet * TmqhInputPacketpool(ThreadVars *)