common/sfc_efx/base: add interrupts module for Riverhead
[dpdk.git] / drivers / crypto / octeontx2 / otx2_security.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (C) 2020 Marvell International Ltd.
3  */
4
5 #ifndef __OTX2_SECURITY_H__
6 #define __OTX2_SECURITY_H__
7
8 #include "otx2_cryptodev_sec.h"
9 #include "otx2_ethdev_sec.h"
10
11 #define OTX2_SEC_AH_HDR_LEN                     12
12 #define OTX2_SEC_AES_GCM_IV_LEN                 8
13 #define OTX2_SEC_AES_GCM_MAC_LEN                16
14 #define OTX2_SEC_AES_CBC_IV_LEN                 16
15 #define OTX2_SEC_SHA1_HMAC_LEN                  12
16
17 #define OTX2_SEC_AES_GCM_ROUNDUP_BYTE_LEN       4
18 #define OTX2_SEC_AES_CBC_ROUNDUP_BYTE_LEN       16
19
20 union otx2_sec_session_ipsec {
21         struct otx2_sec_session_ipsec_ip ip;
22         struct otx2_sec_session_ipsec_lp lp;
23 };
24
25 struct otx2_sec_session {
26         union otx2_sec_session_ipsec ipsec;
27         void *userdata;
28         /**< Userdata registered by the application */
29 } __rte_cache_aligned;
30
31 #endif /* __OTX2_SECURITY_H__ */