Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / net / ethernet / fungible / funeth / funeth_ktls.h
blob9d6f2141a9593f42234b13123fae1b273757afc5
1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
3 #ifndef _FUN_KTLS_H
4 #define _FUN_KTLS_H
6 #include <net/tls.h>
8 struct funeth_priv;
10 struct fun_ktls_tx_ctx {
11 __be64 tlsid;
12 u32 next_seq;
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);
19 #else
21 static inline void fun_ktls_init(struct net_device *netdev)
25 static inline void fun_ktls_cleanup(struct funeth_priv *fp)
28 #endif
30 #endif /* _FUN_KTLS_H */