6 #ifndef _RTE_IPSEC_SAD_H_ 7 #define _RTE_IPSEC_SAD_H_ 11 #include <rte_compat.h> 29 RTE_IPSEC_SAD_SPI_ONLY = 0,
30 RTE_IPSEC_SAD_SPI_DIP,
31 RTE_IPSEC_SAD_SPI_DIP_SIP,
32 RTE_IPSEC_SAD_KEY_TYPE_MASK,
35 struct rte_ipsec_sadv4_key {
41 struct rte_ipsec_sadv6_key {
47 union rte_ipsec_sad_key {
48 struct rte_ipsec_sadv4_key v4;
49 struct rte_ipsec_sadv6_key v6;
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)
__rte_experimental void rte_ipsec_sad_destroy(struct rte_ipsec_sad *sad)