suricata
util-dpdk.h File Reference
#include "util-dpdk-common.h"
#include "util-device.h"
Include dependency graph for util-dpdk.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void DPDKCleanupEAL (void)
 
void DPDKCloseDevice (LiveDevice *ldev)
 
void DPDKFreeDevice (LiveDevice *ldev)
 
int32_t DPDKDeviceSetSocketID (uint16_t port_id, int32_t *socket_id)
 
int32_t DPDKDeviceNameSetSocketID (char *iface_name, int32_t *socket_id)
 

Detailed Description

Function Documentation

◆ DPDKCleanupEAL()

void DPDKCleanupEAL ( void  )

Definition at line 30 of file util-dpdk.c.

References RUNMODE_DPDK, SCLogError, and SCRunmodeGet().

Referenced by GlobalsDestroy().

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

◆ DPDKCloseDevice()

void DPDKCloseDevice ( LiveDevice ldev)

Definition at line 41 of file util-dpdk.c.

References LiveDevice_::dev, RUNMODE_DPDK, SCLogError, SCLogPerf, and SCRunmodeGet().

Referenced by LiveDeviceListClean().

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

◆ DPDKDeviceNameSetSocketID()

int32_t DPDKDeviceNameSetSocketID ( char *  iface_name,
int32_t *  socket_id 
)
Parameters
iface_name- name of the queried interface
socket_id- socket ID of the queried port
Returns
non-negative number on success, negative on failure (errno)

Definition at line 99 of file util-dpdk.c.

References DPDKDeviceSetSocketID(), SCLogError, and SCReturnInt.

Here is the call graph for this function:

◆ DPDKDeviceSetSocketID()

int32_t DPDKDeviceSetSocketID ( uint16_t  port_id,
int32_t *  socket_id 
)
Parameters
port_id- queried port
socket_id- socket ID of the queried port
Returns
non-negative number on success, negative on failure (errno)

Definition at line 75 of file util-dpdk.c.

Referenced by DPDKDeviceNameSetSocketID().

Here is the caller graph for this function:

◆ DPDKFreeDevice()

void DPDKFreeDevice ( LiveDevice ldev)

Definition at line 59 of file util-dpdk.c.

References LiveDevice_::dev, RUNMODE_DPDK, SCLogDebug, and SCRunmodeGet().

Here is the call graph for this function: