funeth_ktls.h 503 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
  2. #ifndef _FUN_KTLS_H
  3. #define _FUN_KTLS_H
  4. #include <net/tls.h>
  5. struct funeth_priv;
  6. struct fun_ktls_tx_ctx {
  7. __be64 tlsid;
  8. u32 next_seq;
  9. };
  10. #if IS_ENABLED(CONFIG_TLS_DEVICE)
  11. int fun_ktls_init(struct net_device *netdev);
  12. void fun_ktls_cleanup(struct funeth_priv *fp);
  13. #else
  14. static inline void fun_ktls_init(struct net_device *netdev)
  15. {
  16. }
  17. static inline void fun_ktls_cleanup(struct funeth_priv *fp)
  18. {
  19. }
  20. #endif
  21. #endif /* _FUN_KTLS_H */