DPDK
20.05.0
|
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 | |
__rte_experimental uint64_t | rte_ipsec_sa_type (const struct rte_ipsec_sa *sa) |
__rte_experimental int | rte_ipsec_sa_size (const struct rte_ipsec_sa_prm *prm) |
__rte_experimental int | rte_ipsec_sa_init (struct rte_ipsec_sa *sa, const struct rte_ipsec_sa_prm *prm, uint32_t size) |
__rte_experimental void | rte_ipsec_sa_fini (struct rte_ipsec_sa *sa) |
EXPERIMENTAL: this API may change without prior notice
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 71 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.
__rte_experimental uint64_t rte_ipsec_sa_type | ( | const struct rte_ipsec_sa * | sa | ) |
__rte_experimental 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. |
__rte_experimental 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. |
__rte_experimental void rte_ipsec_sa_fini | ( | struct rte_ipsec_sa * | sa | ) |
cleanup SA
sa | Pointer to SA object to de-initialize. |