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>
31typedef struct ipsec_cache_entry_s {
32 struct ipsec_cache_entry_s *next;
66typedef struct ipsec_cache_s {
68 ipsec_cache_entry_t *in_list;
69 ipsec_cache_entry_t *out_list;
70 ipsec_cache_entry_t array[MAX_DB];
74extern ipsec_cache_t *ipsec_cache;
77void init_ipsec_cache(
void);
92int create_ipsec_cache_entry(sa_db_entry_t *cipher_sa,
93 sa_db_entry_t *auth_sa,
95 crypto_api_mode_e api_mode,
109ipsec_cache_entry_t *find_ipsec_cache_entry_in(uint32_t src_ip,
123ipsec_cache_entry_t *find_ipsec_cache_entry_out(uint32_t src_ip,
127int destroy_ipsec_cache(
void);
uint16_t odp_u16be_t
unsigned 16bit big endian
odp_cipher_alg_t
Crypto API cipher algorithm.
uint64_t odp_crypto_session_t
Crypto API opaque session handle.
odp_auth_alg_t
Crypto API authentication algorithm.
bool odp_bool_t
Boolean type.