suricata
stream-tcp-cache.c File Reference
#include "suricata-common.h"
#include "suricata.h"
#include "stream-tcp-private.h"
#include "stream-tcp-cache.h"
#include "util-debug.h"
Include dependency graph for stream-tcp-cache.c:

Go to the source code of this file.

Data Structures

struct  TcpPoolCache
 

Typedefs

typedef struct TcpPoolCache TcpPoolCache
 

Functions

void StreamTcpThreadCacheEnable (void)
 enable segment cache. Should only be done for worker threads
 
void StreamTcpThreadCacheReturnSegment (TcpSegment *seg)
 
void StreamTcpThreadCacheReturnSession (TcpSession *ssn)
 
void StreamTcpThreadCacheCleanup (void)
 
TcpSegmentStreamTcpThreadCacheGetSegment (void)
 
TcpSessionStreamTcpThreadCacheGetSession (void)
 

Variables

PoolThreadssn_pool
 
PoolThreadsegment_thread_pool
 

Detailed Description

Typedef Documentation

◆ TcpPoolCache

typedef struct TcpPoolCache TcpPoolCache

Function Documentation

◆ StreamTcpThreadCacheCleanup()

◆ StreamTcpThreadCacheEnable()

void StreamTcpThreadCacheEnable ( void  )

enable segment cache. Should only be done for worker threads

Definition at line 48 of file stream-tcp-cache.c.

References TcpPoolCache::cache_enabled.

Referenced by StreamTcpThreadInit().

Here is the caller graph for this function:

◆ StreamTcpThreadCacheGetSegment()

TcpSegment * StreamTcpThreadCacheGetSegment ( void  )

Definition at line 179 of file stream-tcp-cache.c.

References TcpSegment::sbseg, TcpPoolCache::segs_cache, and TcpPoolCache::segs_cache_idx.

Referenced by StreamTcpGetSegment().

Here is the caller graph for this function:

◆ StreamTcpThreadCacheGetSession()

TcpSession * StreamTcpThreadCacheGetSession ( void  )

Definition at line 190 of file stream-tcp-cache.c.

References TcpPoolCache::ssns_cache, and TcpPoolCache::ssns_cache_idx.

◆ StreamTcpThreadCacheReturnSegment()

◆ StreamTcpThreadCacheReturnSession()

void StreamTcpThreadCacheReturnSession ( TcpSession ssn)

Variable Documentation

◆ segment_thread_pool

◆ ssn_pool