suricata
runmode-af-xdp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int RunModeIdsAFXDPSingle (void)
 Single thread version of the AF_XDP processing. More...
 
int RunModeIdsAFXDPWorkers (void)
 Workers version of the AF_XDP processing. More...
 
void RunModeIdsAFXDPRegister (void)
 
const char * RunModeAFXDPGetDefaultMode (void)
 

Detailed Description

Function Documentation

◆ RunModeAFXDPGetDefaultMode()

const char* RunModeAFXDPGetDefaultMode ( void  )

Definition at line 67 of file runmode-af-xdp.c.

◆ RunModeIdsAFXDPRegister()

void RunModeIdsAFXDPRegister ( void  )

Definition at line 72 of file runmode-af-xdp.c.

References RUNMODE_AFXDP_DEV, RunModeIdsAFXDPSingle(), RunModeIdsAFXDPWorkers(), and RunModeRegisterNewRunMode().

Here is the call graph for this function:

◆ RunModeIdsAFXDPSingle()

int RunModeIdsAFXDPSingle ( void  )

Single thread version of the AF_XDP processing.

Definition at line 325 of file runmode-af-xdp.c.

References AFXDPQueueProtectionInit(), ConfGet(), FatalError, RunModeInitialize(), RunModeSetLiveCaptureSingle(), SCEnter, SCLogDebug, SCReturnInt, thread_name_single, TimeModeSetLive(), and TM_ECODE_OK.

Referenced by RunModeIdsAFXDPRegister().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RunModeIdsAFXDPWorkers()

int RunModeIdsAFXDPWorkers ( void  )

Workers version of the AF_XDP processing.

Start N threads with each thread doing all the work.

Definition at line 360 of file runmode-af-xdp.c.

References AFXDPQueueProtectionInit(), ConfGet(), FatalError, RunModeInitialize(), RunModeSetLiveCaptureWorkers(), SCEnter, SCLogDebug, SCReturnInt, thread_name_workers, TimeModeSetLive(), and TM_ECODE_OK.

Referenced by RunModeIdsAFXDPRegister().

Here is the call graph for this function:
Here is the caller graph for this function: