1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2 /* Copyright (C) 2019 Netronome Systems, Inc. */
3 
4 #ifndef NFP_CRYPTO_H
5 #define NFP_CRYPTO_H 1
6 
7 struct nfp_net_tls_offload_ctx {
8 	__be32 fw_handle[2];
9 
10 	u8 rx_end[0];
11 	/* Tx only fields follow - Rx side does not have enough driver state
12 	 * to fit these
13 	 */
14 
15 	u32 next_seq;
16 };
17 
18 #ifdef CONFIG_TLS_DEVICE
19 int nfp_net_tls_init(struct nfp_net *nn);
20 #else
21 static inline int nfp_net_tls_init(struct nfp_net *nn)
22 {
23 	return 0;
24 }
25 #endif
26 
27 #endif
28