GNU Linux-libre 5.19-rc6-gnu
[releases.git] / drivers / net / ethernet / fungible / funeth / funeth_ktls.h
1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
2
3 #ifndef _FUN_KTLS_H
4 #define _FUN_KTLS_H
5
6 #include <net/tls.h>
7
8 struct funeth_priv;
9
10 struct fun_ktls_tx_ctx {
11         __be64 tlsid;
12         u32 next_seq;
13 };
14
15 #if IS_ENABLED(CONFIG_TLS_DEVICE)
16 int fun_ktls_init(struct net_device *netdev);
17 void fun_ktls_cleanup(struct funeth_priv *fp);
18
19 #else
20
21 static inline void fun_ktls_init(struct net_device *netdev)
22 {
23 }
24
25 static inline void fun_ktls_cleanup(struct funeth_priv *fp)
26 {
27 }
28 #endif
29
30 #endif /* _FUN_KTLS_H */