7#ifndef ODP_IPSEC_CACHE_H_
8#define ODP_IPSEC_CACHE_H_
15#include <odp/helper/ipsec.h>
17#include <odp_ipsec_misc.h>
18#include <odp_ipsec_sa_db.h>
23typedef struct ipsec_cache_entry_s {
24 struct ipsec_cache_entry_s *next;
50typedef struct ipsec_cache_s {
52 ipsec_cache_entry_t *in_list;
53 ipsec_cache_entry_t *out_list;
54 ipsec_cache_entry_t array[MAX_DB];
58extern ipsec_cache_t *ipsec_cache;
61void init_ipsec_cache(
void);
74int create_ipsec_cache_entry(sa_db_entry_t *cipher_sa,
75 sa_db_entry_t *auth_sa,
90ipsec_cache_entry_t *find_ipsec_cache_entry_in(uint32_t src_ip,
104ipsec_cache_entry_t *find_ipsec_cache_entry_out(uint32_t src_ip,
108int destroy_ipsec_cache(
void);
odp_cipher_alg_t
Crypto API cipher algorithm.
odp_auth_alg_t
Crypto API authentication algorithm.
bool odp_bool_t
Boolean type.