1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2020 Marvell International Ltd.
5 #ifndef __OTX2_IPSEC_FP_H__
6 #define __OTX2_IPSEC_FP_H__
8 struct otx2_ipsec_fp_sa_ctl {
10 uint64_t exp_proto_inter_frag : 8;
11 uint64_t rsvd_42_40 : 3;
13 uint64_t rsvd_45_44 : 2;
14 uint64_t encap_type : 2;
15 uint64_t enc_type : 3;
17 uint64_t auth_type : 4;
19 uint64_t direction : 1;
20 uint64_t outer_ip_ver : 1;
21 uint64_t inner_ip_ver : 1;
22 uint64_t ipsec_mode : 1;
23 uint64_t ipsec_proto : 1;
24 uint64_t aes_key_len : 2;
27 struct otx2_ipsec_fp_in_sa {
29 struct otx2_ipsec_fp_sa_ctl ctl;
32 uint8_t nonce[4]; /* Only for AES-GCM */
40 uint8_t cipher_key[32];
55 #endif /* __OTX2_IPSEC_FP_H__ */