162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Chelsio inline crypto configuration
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciconfig CHELSIO_INLINE_CRYPTO
762306a36Sopenharmony_ci	bool "Chelsio Inline Crypto support"
862306a36Sopenharmony_ci	depends on CHELSIO_T4
962306a36Sopenharmony_ci	default y
1062306a36Sopenharmony_ci	help
1162306a36Sopenharmony_ci	  Enable support for inline crypto.
1262306a36Sopenharmony_ci	  Allows enable/disable from list of inline crypto drivers.
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ciif CHELSIO_INLINE_CRYPTO
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ciconfig CRYPTO_DEV_CHELSIO_TLS
1762306a36Sopenharmony_ci	tristate "Chelsio Crypto Inline TLS Driver"
1862306a36Sopenharmony_ci	depends on CHELSIO_T4
1962306a36Sopenharmony_ci	depends on TLS
2062306a36Sopenharmony_ci	depends on TLS_TOE
2162306a36Sopenharmony_ci	help
2262306a36Sopenharmony_ci	  Support Chelsio Inline TLS with Chelsio crypto accelerator.
2362306a36Sopenharmony_ci	  Enable inline TLS support for Tx and Rx.
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci	  To compile this driver as a module, choose M here: the module
2662306a36Sopenharmony_ci	  will be called chtls.
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ciconfig CHELSIO_IPSEC_INLINE
2962306a36Sopenharmony_ci       tristate "Chelsio IPSec XFRM Tx crypto offload"
3062306a36Sopenharmony_ci       depends on CHELSIO_T4
3162306a36Sopenharmony_ci       depends on XFRM_OFFLOAD
3262306a36Sopenharmony_ci       depends on INET_ESP_OFFLOAD || INET6_ESP_OFFLOAD
3362306a36Sopenharmony_ci       help
3462306a36Sopenharmony_ci        Support Chelsio Inline IPsec with Chelsio crypto accelerator.
3562306a36Sopenharmony_ci        Enable inline IPsec support for Tx.
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ci        To compile this driver as a module, choose M here: the module
3862306a36Sopenharmony_ci        will be called ch_ipsec.
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ciconfig CHELSIO_TLS_DEVICE
4162306a36Sopenharmony_ci        tristate "Chelsio Inline KTLS Offload"
4262306a36Sopenharmony_ci        depends on CHELSIO_T4
4362306a36Sopenharmony_ci        depends on TLS
4462306a36Sopenharmony_ci        depends on TLS_DEVICE
4562306a36Sopenharmony_ci	select CRYPTO_LIB_AES
4662306a36Sopenharmony_ci        help
4762306a36Sopenharmony_ci          This flag enables support for kernel tls offload over Chelsio T6
4862306a36Sopenharmony_ci          crypto accelerator. CONFIG_CHELSIO_TLS_DEVICE flag can be enabled
4962306a36Sopenharmony_ci          only if CONFIG_TLS and CONFIG_TLS_DEVICE flags are enabled.
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ci	  To compile this driver as a module, choose M here: the module
5262306a36Sopenharmony_ci	  will be called ch_ktls.
5362306a36Sopenharmony_ci
5462306a36Sopenharmony_ciendif # CHELSIO_INLINE_CRYPTO
55