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;
23 uint16_t max_extended_len;
29 struct cn10k_sec_session {
30 struct cn10k_ipsec_sa sa;
31 } __rte_cache_aligned;
33 void cn10k_sec_ops_override(void);
35 #endif /* __CN10K_IPSEC_H__ */