summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/fungible/funeth/funeth_ktls.h
blob: 1b21cccf127853293bc6c0d301d59d82a27e5572 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */

#ifndef _FUN_KTLS_H
#define _FUN_KTLS_H

struct net_device;
struct funeth_priv;

#ifdef CONFIG_TLS_DEVICE
#include <net/tls.h>

struct fun_ktls_tx_ctx {
	__be64 tlsid;
	u32 next_seq;
};

int fun_ktls_init(struct net_device *netdev);
void fun_ktls_cleanup(struct funeth_priv *fp);

#else

static inline void fun_ktls_init(struct net_device *netdev)
{
}

static inline void fun_ktls_cleanup(struct funeth_priv *fp)
{
}
#endif

#endif /* _FUN_KTLS_H */