6#ifndef _RTE_IPSEC_SAD_H_
7#define _RTE_IPSEC_SAD_H_
28 RTE_IPSEC_SAD_SPI_ONLY = 0,
29 RTE_IPSEC_SAD_SPI_DIP,
30 RTE_IPSEC_SAD_SPI_DIP_SIP,
31 RTE_IPSEC_SAD_KEY_TYPE_MASK,
34struct rte_ipsec_sadv4_key {
40struct rte_ipsec_sadv6_key {
46union rte_ipsec_sad_key {
47 struct rte_ipsec_sadv4_key v4;
48 struct rte_ipsec_sadv6_key v6;
52#define RTE_IPSEC_SAD_NAMESIZE 64
54#define RTE_IPSEC_SAD_FLAG_IPV6 0x1
56#define RTE_IPSEC_SAD_FLAG_RW_CONCURRENCY 0x2
63 uint32_t
max_sa[RTE_IPSEC_SAD_KEY_TYPE_MASK];
88 const union rte_ipsec_sad_key *key,
89 int key_type,
void *sa);
108 const union rte_ipsec_sad_key *key,
121struct rte_ipsec_sad *
134struct rte_ipsec_sad *
164 const union rte_ipsec_sad_key *keys[],
165 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]