suricata
util-napatech.c File Reference
#include "suricata-common.h"
#include "suricata.h"
#include "util-device.h"
#include "util-cpu.h"
#include "threadvars.h"
#include "tm-threads.h"
Include dependency graph for util-napatech.c:

Go to the source code of this file.

Data Structures

struct  StreamCounters_
 

Macros

#define MAX_HOSTBUFFERS   8
 
#define MAX_HOSTBUFFER   4
 
#define MAX_STREAMS   256
 
#define HB_HIGHWATER   2048
 
#define PORTS_SPEC_SIZE   64
 

Typedefs

typedef struct StreamCounters_ StreamCounters
 

Enumerations

enum  CONFIG_SPECIFIER { CONFIG_SPECIFIER_UNDEFINED = 0, CONFIG_SPECIFIER_RANGE, CONFIG_SPECIFIER_INDIVIDUAL }
 

Functions

NapatechCurrentStats NapatechGetCurrentStats (uint16_t id)
 
int NapatechGetStreamConfig (NapatechStreamConfig stream_config[])
 
void NapatechStartStats (void)
 
bool NapatechSetupNuma (uint32_t stream, uint32_t numa)
 
uint32_t NapatechSetupTraffic (uint32_t first_stream, uint32_t last_stream, uint32_t *filter_id, uint32_t *hash_id)
 
bool NapatechDeleteFilter (uint32_t filter_id)
 

Variables

NapatechCurrentStats current_stats [MAX_STREAMS]
 

Detailed Description

Author
Napatech Inc.
Phil Young py@na.nosp@m.pate.nosp@m.ch.co.nosp@m.m

Definition in file util-napatech.c.

Macro Definition Documentation

#define HB_HIGHWATER   2048

Definition at line 313 of file util-napatech.c.

Referenced by NapatechGetStreamConfig().

#define MAX_HOSTBUFFER   4

Definition at line 311 of file util-napatech.c.

#define MAX_HOSTBUFFERS   8

Definition at line 62 of file util-napatech.c.

Referenced by NapatechSetupNuma(), and NapatechSetupTraffic().

#define MAX_STREAMS   256

Definition at line 312 of file util-napatech.c.

Referenced by NapatechGetStreamConfig().

#define PORTS_SPEC_SIZE   64

Referenced by NapatechSetupTraffic().

Typedef Documentation

Enumeration Type Documentation

Enumerator
CONFIG_SPECIFIER_UNDEFINED 
CONFIG_SPECIFIER_RANGE 
CONFIG_SPECIFIER_INDIVIDUAL 

Definition at line 56 of file util-napatech.c.

Function Documentation

bool NapatechDeleteFilter ( uint32_t  filter_id)

Definition at line 1052 of file util-napatech.c.

References NAPATECH_ERROR, NAPATECH_NTPL_ERROR, SC_ERR_NAPATECH_STREAMS_REGISTER_FAILED, and SCLogInfo.

Referenced by NapatechPacketLoopZC().

Here is the caller graph for this function:

NapatechCurrentStats NapatechGetCurrentStats ( uint16_t  id)

Definition at line 50 of file util-napatech.c.

Referenced by NapatechStreamThreadExitStats().

Here is the caller graph for this function:

bool NapatechSetupNuma ( uint32_t  stream,
uint32_t  numa 
)

Definition at line 830 of file util-napatech.c.

References ConfGetValue(), MAX_HOSTBUFFERS, NAPATECH_ERROR, NAPATECH_NTPL_ERROR, SC_ERR_NAPATECH_INIT_FAILED, SC_ERR_NAPATECH_STREAMS_REGISTER_FAILED, and SCLogInfo.

Referenced by NapatechPacketLoopZC().

Here is the call graph for this function:

Here is the caller graph for this function:

uint32_t NapatechSetupTraffic ( uint32_t  first_stream,
uint32_t  last_stream,
uint32_t *  filter_id,
uint32_t *  hash_id 
)
void NapatechStartStats ( void  )

Definition at line 789 of file util-napatech.c.

References SC_ERR_THREAD_CREATE, SC_ERR_THREAD_SPAWN, SCLogError, TmThreadCreate(), and TmThreadSpawn().

Referenced by RunModeNapatechRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

Definition at line 48 of file util-napatech.c.