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>
10 #include "cnxk_ipsec.h"
12 #define CN10K_IPSEC_SA_CTX_HDR_SIZE 1
14 struct cn10k_ipsec_sa {
17 struct roc_ot_ipsec_inb_sa in_sa;
19 struct roc_ot_ipsec_outb_sa out_sa;
21 /** Pre-populated CPT inst words */
22 struct cnxk_cpt_inst_tmpl inst;
28 struct cn10k_sec_session {
29 struct cn10k_ipsec_sa sa;
30 } __rte_cache_aligned;
32 void cn10k_sec_ops_override(void);
34 #endif /* __CN10K_IPSEC_H__ */