1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2021 Marvell.
5 #ifndef __CN10K_IPSEC_H__
6 #define __CN10K_IPSEC_H__
8 #include <rte_security.h>
12 #include "cnxk_ipsec.h"
14 typedef void *CN10K_SA_CONTEXT_MARKER[0];
16 struct cn10k_ipsec_sa {
17 /** Pre-populated CPT inst words */
18 struct cnxk_cpt_inst_tmpl inst;
19 uint16_t max_extended_len;
25 * End of SW mutable area
27 CN10K_SA_CONTEXT_MARKER sw_area_end __rte_aligned(ROC_ALIGN);
31 struct roc_ot_ipsec_inb_sa in_sa;
33 struct roc_ot_ipsec_outb_sa out_sa;
35 } __rte_aligned(ROC_ALIGN);
37 struct cn10k_sec_session {
38 struct cn10k_ipsec_sa sa;
39 } __rte_aligned(ROC_ALIGN);
41 void cn10k_sec_ops_override(void);
43 #endif /* __CN10K_IPSEC_H__ */