Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
0002 
0003 #ifndef _FUN_KTLS_H
0004 #define _FUN_KTLS_H
0005 
0006 #include <net/tls.h>
0007 
0008 struct funeth_priv;
0009 
0010 struct fun_ktls_tx_ctx {
0011     __be64 tlsid;
0012     u32 next_seq;
0013 };
0014 
0015 #if IS_ENABLED(CONFIG_TLS_DEVICE)
0016 int fun_ktls_init(struct net_device *netdev);
0017 void fun_ktls_cleanup(struct funeth_priv *fp);
0018 
0019 #else
0020 
0021 static inline void fun_ktls_init(struct net_device *netdev)
0022 {
0023 }
0024 
0025 static inline void fun_ktls_cleanup(struct funeth_priv *fp)
0026 {
0027 }
0028 #endif
0029 
0030 #endif /* _FUN_KTLS_H */