/**
* @file rte_ipsec_sad.h
- * @b EXPERIMENTAL: this API may change without prior notice
*
* RTE IPsec security association database (SAD) support.
* Contains helper functions to lookup and maintain SAD
* @return
* 0 on success, negative value otherwise
*/
-__rte_experimental
int
rte_ipsec_sad_add(struct rte_ipsec_sad *sad,
const union rte_ipsec_sad_key *key,
* @return
* 0 on success, negative value otherwise
*/
-__rte_experimental
int
rte_ipsec_sad_del(struct rte_ipsec_sad *sad,
const union rte_ipsec_sad_key *key,
* Handle to SAD object on success
* NULL otherwise with rte_errno set to an appropriate values.
*/
-__rte_experimental
struct rte_ipsec_sad *
rte_ipsec_sad_create(const char *name, const struct rte_ipsec_sad_conf *conf);
* set appropriately. Possible rte_errno values include:
* - ENOENT - required entry not available to return.
*/
-__rte_experimental
struct rte_ipsec_sad *
rte_ipsec_sad_find_existing(const char *name);
* @return
* None
*/
-__rte_experimental
void
rte_ipsec_sad_destroy(struct rte_ipsec_sad *sad);
* @return
* -EINVAL for incorrect arguments, otherwise number of successful lookups.
*/
-__rte_experimental
int
rte_ipsec_sad_lookup(const struct rte_ipsec_sad *sad,
const union rte_ipsec_sad_key *keys[],