DPDK 21.11.9
Data Fields
rte_security_ctx Struct Reference

#include <rte_security.h>

Data Fields

void * device
 
const struct rte_security_opsops
 
uint16_t sess_cnt
 
uint32_t flags
 

Detailed Description

Security context for crypto/eth devices

Security instance for each driver to register security operations. The application can get the security context from the crypto/eth device id using the APIs rte_cryptodev_get_sec_ctx()/rte_eth_dev_get_sec_ctx() This structure is used to identify the device(crypto/eth) for which the security operations need to be performed.

Examples
examples/ipsec-secgw/ipsec-secgw.c, examples/ipsec-secgw/ipsec.c, and examples/ipsec-secgw/ipsec_worker.c.

Definition at line 72 of file rte_security.h.

Field Documentation

◆ device

void* device

Crypto/ethernet device attached

Definition at line 73 of file rte_security.h.

◆ ops

const struct rte_security_ops* ops

Pointer to security ops for the device

Definition at line 75 of file rte_security.h.

◆ sess_cnt

uint16_t sess_cnt

Number of sessions attached to this context

Definition at line 77 of file rte_security.h.

◆ flags

uint32_t flags

Flags for security context

Definition at line 79 of file rte_security.h.


The documentation for this struct was generated from the following file: