funeth_ktls.h (503B)
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 8struct funeth_priv; 9 10struct fun_ktls_tx_ctx { 11 __be64 tlsid; 12 u32 next_seq; 13}; 14 15#if IS_ENABLED(CONFIG_TLS_DEVICE) 16int fun_ktls_init(struct net_device *netdev); 17void fun_ktls_cleanup(struct funeth_priv *fp); 18 19#else 20 21static inline void fun_ktls_init(struct net_device *netdev) 22{ 23} 24 25static inline void fun_ktls_cleanup(struct funeth_priv *fp) 26{ 27} 28#endif 29 30#endif /* _FUN_KTLS_H */