aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/fungible/funeth/funeth_ktls.h
blob: 9d6f2141a9593f42234b13123fae1b273757afc5 (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
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */

#ifndef _FUN_KTLS_H
#define _FUN_KTLS_H

#include <net/tls.h>

struct funeth_priv;

struct fun_ktls_tx_ctx {
	__be64 tlsid;
	u32 next_seq;
};

#if IS_ENABLED(CONFIG_TLS_DEVICE)
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 */