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