6 #ifndef _RTE_IPSEC_SAD_H_
7 #define _RTE_IPSEC_SAD_H_
9 #include <rte_compat.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,
33 struct rte_ipsec_sadv4_key {
39 struct rte_ipsec_sadv6_key {
45 union 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];
88 const union rte_ipsec_sad_key *key,
89 int key_type,
void *sa);
109 const union rte_ipsec_sad_key *key,
123 struct rte_ipsec_sad *
137 struct rte_ipsec_sad *
171 const union rte_ipsec_sad_key *keys[],
172 void *sa[], uint32_t n);
__rte_experimental int rte_ipsec_sad_del(struct rte_ipsec_sad *sad, const union rte_ipsec_sad_key *key, int key_type)
__rte_experimental int rte_ipsec_sad_add(struct rte_ipsec_sad *sad, const union rte_ipsec_sad_key *key, int key_type, void *sa)
__rte_experimental struct rte_ipsec_sad * rte_ipsec_sad_find_existing(const char *name)
__rte_experimental int rte_ipsec_sad_lookup(const struct rte_ipsec_sad *sad, const union rte_ipsec_sad_key *keys[], void *sa[], uint32_t n)
uint32_t max_sa[RTE_IPSEC_SAD_KEY_TYPE_MASK]
__rte_experimental void rte_ipsec_sad_destroy(struct rte_ipsec_sad *sad)