crypto/cnxk: enable allocated queues only
[dpdk.git] / drivers / crypto / cnxk / cn10k_ipsec.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2021 Marvell.
3  */
4
5 #ifndef __CN10K_IPSEC_H__
6 #define __CN10K_IPSEC_H__
7
8 #include <rte_security.h>
9
10 #include "cnxk_ipsec.h"
11
12 #define CN10K_IPSEC_SA_CTX_HDR_SIZE 1
13
14 struct cn10k_ipsec_sa {
15         union {
16                 /** Inbound SA */
17                 struct roc_ot_ipsec_inb_sa in_sa;
18                 /** Outbound SA */
19                 struct roc_ot_ipsec_outb_sa out_sa;
20         };
21         /** Pre-populated CPT inst words */
22         struct cnxk_cpt_inst_tmpl inst;
23         uint16_t max_extended_len;
24         uint16_t iv_offset;
25         uint8_t iv_length;
26         bool ip_csum_enable;
27 };
28
29 struct cn10k_sec_session {
30         struct cn10k_ipsec_sa sa;
31 } __rte_cache_aligned;
32
33 void cn10k_sec_ops_override(void);
34
35 #endif /* __CN10K_IPSEC_H__ */