DPDK 22.11.5
|
Go to the source code of this file.
Data Structures | |
struct | rte_ipsec_sa_prm |
Macros | |
#define | RTE_IPSEC_SAFLAG_SQN_ATOM (1ULL << 0) |
Enumerations | |
enum | |
Functions | |
uint64_t | rte_ipsec_sa_type (const struct rte_ipsec_sa *sa) |
int | rte_ipsec_sa_size (const struct rte_ipsec_sa_prm *prm) |
int | rte_ipsec_sa_init (struct rte_ipsec_sa *sa, const struct rte_ipsec_sa_prm *prm, uint32_t size) |
void | rte_ipsec_sa_fini (struct rte_ipsec_sa *sa) |
Defines API to manage IPsec Security Association (SA) objects.
Definition in file rte_ipsec_sa.h.
#define RTE_IPSEC_SAFLAG_SQN_ATOM (1ULL << 0) |
Indicates that SA will(/will not) need an 'atomic' access to sequence number and replay window. 'atomic' here means: functions:
Definition at line 70 of file rte_ipsec_sa.h.
anonymous enum |
SA type is an 64-bit value that contain the following information:
Definition at line 85 of file rte_ipsec_sa.h.
uint64_t rte_ipsec_sa_type | ( | const struct rte_ipsec_sa * | sa | ) |
get type of given SA
int rte_ipsec_sa_size | ( | const struct rte_ipsec_sa_prm * | prm | ) |
Calculate required SA size based on provided input parameters.
prm | Parameters that will be used to initialise SA object. |
int rte_ipsec_sa_init | ( | struct rte_ipsec_sa * | sa, |
const struct rte_ipsec_sa_prm * | prm, | ||
uint32_t | size | ||
) |
initialise SA based on provided input parameters.
sa | SA object to initialise. |
prm | Parameters used to initialise given SA object. |
size | size of the provided buffer for SA. |
void rte_ipsec_sa_fini | ( | struct rte_ipsec_sa * | sa | ) |
cleanup SA
sa | Pointer to SA object to de-initialize. |