6#ifndef _RTE_IPSEC_SAD_H_
7#define _RTE_IPSEC_SAD_H_
27 RTE_IPSEC_SAD_SPI_ONLY = 0,
28 RTE_IPSEC_SAD_SPI_DIP,
29 RTE_IPSEC_SAD_SPI_DIP_SIP,
30 RTE_IPSEC_SAD_KEY_TYPE_MASK,
33struct rte_ipsec_sadv4_key {
39struct rte_ipsec_sadv6_key {
45union rte_ipsec_sad_key {
46 struct rte_ipsec_sadv4_key v4;
47 struct rte_ipsec_sadv6_key v6;
51#define RTE_IPSEC_SAD_NAMESIZE 64
53#define RTE_IPSEC_SAD_FLAG_IPV6 0x1
55#define RTE_IPSEC_SAD_FLAG_RW_CONCURRENCY 0x2
62 uint32_t
max_sa[RTE_IPSEC_SAD_KEY_TYPE_MASK];
87 const union rte_ipsec_sad_key *key,
88 int key_type,
void *sa);
107 const union rte_ipsec_sad_key *key,
120struct rte_ipsec_sad *
133struct rte_ipsec_sad *
163 const union rte_ipsec_sad_key *keys[],
164 void *sa[], uint32_t n);
int rte_ipsec_sad_add(struct rte_ipsec_sad *sad, const union rte_ipsec_sad_key *key, int key_type, void *sa)
struct rte_ipsec_sad * rte_ipsec_sad_find_existing(const char *name)
int rte_ipsec_sad_del(struct rte_ipsec_sad *sad, const union rte_ipsec_sad_key *key, int key_type)
int rte_ipsec_sad_lookup(const struct rte_ipsec_sad *sad, const union rte_ipsec_sad_key *keys[], void *sa[], uint32_t n)
void rte_ipsec_sad_destroy(struct rte_ipsec_sad *sad)
uint32_t max_sa[RTE_IPSEC_SAD_KEY_TYPE_MASK]