crypto.h 517 字节
Newer Older
J
Jakub Kicinski 已提交
1 2 3 4 5 6
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
/* Copyright (C) 2019 Netronome Systems, Inc. */

#ifndef NFP_CRYPTO_H
#define NFP_CRYPTO_H 1

7 8 9
struct nfp_net_tls_offload_ctx {
	__be32 fw_handle[2];

J
Jakub Kicinski 已提交
10 11 12 13 14
	u8 rx_end[0];
	/* Tx only fields follow - Rx side does not have enough driver state
	 * to fit these
	 */

15 16 17 18
	u32 next_seq;
	bool out_of_sync;
};

J
Jakub Kicinski 已提交
19 20 21 22 23 24 25 26 27 28
#ifdef CONFIG_TLS_DEVICE
int nfp_net_tls_init(struct nfp_net *nn);
#else
static inline int nfp_net_tls_init(struct nfp_net *nn)
{
	return 0;
}
#endif

#endif