xref: /dpdk/examples/ipsec-secgw/esp.h (revision 3998e2a07220844d3f3c17f76a781ced3efe0de0)
1*3998e2a0SBruce Richardson /* SPDX-License-Identifier: BSD-3-Clause
2*3998e2a0SBruce Richardson  * Copyright(c) 2016 Intel Corporation
3d299106eSSergio Gonzalez Monroy  */
4d299106eSSergio Gonzalez Monroy #ifndef __RTE_IPSEC_XFORM_ESP_H__
5d299106eSSergio Gonzalez Monroy #define __RTE_IPSEC_XFORM_ESP_H__
6d299106eSSergio Gonzalez Monroy 
7d299106eSSergio Gonzalez Monroy struct mbuf;
8d299106eSSergio Gonzalez Monroy 
9d299106eSSergio Gonzalez Monroy 
10d299106eSSergio Gonzalez Monroy int
11c64278c0SSergio Gonzalez Monroy esp_inbound(struct rte_mbuf *m, struct ipsec_sa *sa,
12d299106eSSergio Gonzalez Monroy 		struct rte_crypto_op *cop);
13d299106eSSergio Gonzalez Monroy 
14d299106eSSergio Gonzalez Monroy int
15c64278c0SSergio Gonzalez Monroy esp_inbound_post(struct rte_mbuf *m, struct ipsec_sa *sa,
16d299106eSSergio Gonzalez Monroy 		struct rte_crypto_op *cop);
17d299106eSSergio Gonzalez Monroy 
18d299106eSSergio Gonzalez Monroy int
19c64278c0SSergio Gonzalez Monroy esp_outbound(struct rte_mbuf *m, struct ipsec_sa *sa,
20d299106eSSergio Gonzalez Monroy 		struct rte_crypto_op *cop);
21d299106eSSergio Gonzalez Monroy 
22d299106eSSergio Gonzalez Monroy int
23c64278c0SSergio Gonzalez Monroy esp_outbound_post(struct rte_mbuf *m, struct ipsec_sa *sa,
24d299106eSSergio Gonzalez Monroy 		struct rte_crypto_op *cop);
25d299106eSSergio Gonzalez Monroy 
26d299106eSSergio Gonzalez Monroy #endif /* __RTE_IPSEC_XFORM_ESP_H__ */
27