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