NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
ipsec_ctx.c File Reference
#include <time.h>
#include <rte_ethdev.h>
#include <doca_log.h>
#include <doca_dpdk.h>
#include <doca_ctx.h>
#include <doca_pe.h>
#include <samples/common.h>
#include "ipsec_ctx.h"
#include "flow_common.h"
Include dependency graph for ipsec_ctx.c:

Go to the source code of this file.

Macros

#define SLEEP_IN_NANOS   (10 * 1000) /* Sample the task every 10 microseconds */
 

Functions

 DOCA_LOG_REGISTER (IPSEC_SECURITY_GW::ipsec_ctx)
 
doca_error_t find_port_action_type_switch (int port_id, int *idx)
 
static doca_error_t compare_device_name (struct doca_devinfo *dev_info, const char *iface_name)
 
static doca_error_t compare_device_pci_addr (struct doca_devinfo *dev_info, const char *pci_addr)
 
doca_error_t find_port_action_type_vnf (const struct ipsec_security_gw_config *app_cfg, int port_id, struct doca_dev **connected_dev, int *idx)
 
doca_error_t ipsec_security_gw_close_devices (const struct ipsec_security_gw_config *app_cfg)
 
static doca_error_t open_doca_device (struct ipsec_security_gw_dev_info *info, tasks_check func)
 
doca_error_t ipsec_security_gw_init_devices (struct ipsec_security_gw_config *app_cfg)
 

Macro Definition Documentation

◆ SLEEP_IN_NANOS

#define SLEEP_IN_NANOS   (10 * 1000) /* Sample the task every 10 microseconds */

Definition at line 41 of file ipsec_ctx.c.

Function Documentation

◆ compare_device_name()

static doca_error_t compare_device_name ( struct doca_devinfo *  dev_info,
const char *  iface_name 
)
static

Definition at line 70 of file ipsec_ctx.c.

◆ compare_device_pci_addr()

static doca_error_t compare_device_pci_addr ( struct doca_devinfo *  dev_info,
const char *  pci_addr 
)
static

Definition at line 100 of file ipsec_ctx.c.

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( IPSEC_SECURITY_GW::ipsec_ctx  )

◆ find_port_action_type_switch()

doca_error_t find_port_action_type_switch ( int  port_id,
int *  idx 
)

Definition at line 43 of file ipsec_ctx.c.

◆ find_port_action_type_vnf()

doca_error_t find_port_action_type_vnf ( const struct ipsec_security_gw_config app_cfg,
int  port_id,
struct doca_dev **  connected_dev,
int *  idx 
)

Definition at line 117 of file ipsec_ctx.c.

◆ ipsec_security_gw_close_devices()

doca_error_t ipsec_security_gw_close_devices ( const struct ipsec_security_gw_config app_cfg)

Definition at line 170 of file ipsec_ctx.c.

◆ ipsec_security_gw_init_devices()

doca_error_t ipsec_security_gw_init_devices ( struct ipsec_security_gw_config app_cfg)

Definition at line 221 of file ipsec_ctx.c.

◆ open_doca_device()

static doca_error_t open_doca_device ( struct ipsec_security_gw_dev_info info,
tasks_check  func 
)
static

Definition at line 198 of file ipsec_ctx.c.