xref: /openbmc/linux/drivers/net/ethernet/chelsio/inline_crypto/Kconfig (revision d0034a7a4ac7fae708146ac0059b9c47a1543f0d)
144fd1c1fSVinay Kumar Yadav# SPDX-License-Identifier: GPL-2.0-only
244fd1c1fSVinay Kumar Yadav#
344fd1c1fSVinay Kumar Yadav# Chelsio inline crypto configuration
444fd1c1fSVinay Kumar Yadav#
544fd1c1fSVinay Kumar Yadav
644fd1c1fSVinay Kumar Yadavconfig CHELSIO_INLINE_CRYPTO
744fd1c1fSVinay Kumar Yadav	bool "Chelsio Inline Crypto support"
86bd860acSGeert Uytterhoeven	depends on CHELSIO_T4
944fd1c1fSVinay Kumar Yadav	default y
1044fd1c1fSVinay Kumar Yadav	help
1144fd1c1fSVinay Kumar Yadav	  Enable support for inline crypto.
1244fd1c1fSVinay Kumar Yadav	  Allows enable/disable from list of inline crypto drivers.
1344fd1c1fSVinay Kumar Yadav
1444fd1c1fSVinay Kumar Yadavif CHELSIO_INLINE_CRYPTO
1544fd1c1fSVinay Kumar Yadav
1644fd1c1fSVinay Kumar Yadavconfig CRYPTO_DEV_CHELSIO_TLS
1744fd1c1fSVinay Kumar Yadav	tristate "Chelsio Crypto Inline TLS Driver"
18e859536dSGeert Uytterhoeven	depends on CHELSIO_T4
196e915b27SRandy Dunlap	depends on TLS
2044fd1c1fSVinay Kumar Yadav	depends on TLS_TOE
2144fd1c1fSVinay Kumar Yadav	help
2244fd1c1fSVinay Kumar Yadav	  Support Chelsio Inline TLS with Chelsio crypto accelerator.
2344fd1c1fSVinay Kumar Yadav	  Enable inline TLS support for Tx and Rx.
2444fd1c1fSVinay Kumar Yadav
2544fd1c1fSVinay Kumar Yadav	  To compile this driver as a module, choose M here: the module
2644fd1c1fSVinay Kumar Yadav	  will be called chtls.
2744fd1c1fSVinay Kumar Yadav
281b77be46SVinay Kumar Yadavconfig CHELSIO_IPSEC_INLINE
291b77be46SVinay Kumar Yadav       tristate "Chelsio IPSec XFRM Tx crypto offload"
30e859536dSGeert Uytterhoeven       depends on CHELSIO_T4
311b77be46SVinay Kumar Yadav       depends on XFRM_OFFLOAD
321b77be46SVinay Kumar Yadav       depends on INET_ESP_OFFLOAD || INET6_ESP_OFFLOAD
331b77be46SVinay Kumar Yadav       help
341b77be46SVinay Kumar Yadav        Support Chelsio Inline IPsec with Chelsio crypto accelerator.
351b77be46SVinay Kumar Yadav        Enable inline IPsec support for Tx.
361b77be46SVinay Kumar Yadav
371b77be46SVinay Kumar Yadav        To compile this driver as a module, choose M here: the module
381b77be46SVinay Kumar Yadav        will be called ch_ipsec.
391b77be46SVinay Kumar Yadav
40a8c16e8eSRohit Maheshwariconfig CHELSIO_TLS_DEVICE
41a8c16e8eSRohit Maheshwari        tristate "Chelsio Inline KTLS Offload"
42a8c16e8eSRohit Maheshwari        depends on CHELSIO_T4
43a8c16e8eSRohit Maheshwari        depends on TLS
44a8c16e8eSRohit Maheshwari        depends on TLS_DEVICE
45*a3b01ffdSArd Biesheuvel	select CRYPTO_LIB_AES
46a8c16e8eSRohit Maheshwari        help
47a8c16e8eSRohit Maheshwari          This flag enables support for kernel tls offload over Chelsio T6
48a8c16e8eSRohit Maheshwari          crypto accelerator. CONFIG_CHELSIO_TLS_DEVICE flag can be enabled
49a8c16e8eSRohit Maheshwari          only if CONFIG_TLS and CONFIG_TLS_DEVICE flags are enabled.
50a8c16e8eSRohit Maheshwari
51a8c16e8eSRohit Maheshwari	  To compile this driver as a module, choose M here: the module
52a8c16e8eSRohit Maheshwari	  will be called ch_ktls.
53a8c16e8eSRohit Maheshwari
5444fd1c1fSVinay Kumar Yadavendif # CHELSIO_INLINE_CRYPTO
55