1# SPDX-License-Identifier: GPL-2.0-only
2#
3# Chelsio inline crypto configuration
4#
5
6config CHELSIO_INLINE_CRYPTO
7	bool "Chelsio Inline Crypto support"
8	depends on CHELSIO_T4
9	default y
10	help
11	  Enable support for inline crypto.
12	  Allows enable/disable from list of inline crypto drivers.
13
14if CHELSIO_INLINE_CRYPTO
15
16config CRYPTO_DEV_CHELSIO_TLS
17	tristate "Chelsio Crypto Inline TLS Driver"
18	depends on CHELSIO_T4
19	depends on TLS_TOE
20	help
21	  Support Chelsio Inline TLS with Chelsio crypto accelerator.
22	  Enable inline TLS support for Tx and Rx.
23
24	  To compile this driver as a module, choose M here: the module
25	  will be called chtls.
26
27config CHELSIO_IPSEC_INLINE
28       tristate "Chelsio IPSec XFRM Tx crypto offload"
29       depends on CHELSIO_T4
30       depends on XFRM_OFFLOAD
31       depends on INET_ESP_OFFLOAD || INET6_ESP_OFFLOAD
32       help
33        Support Chelsio Inline IPsec with Chelsio crypto accelerator.
34        Enable inline IPsec support for Tx.
35
36        To compile this driver as a module, choose M here: the module
37        will be called ch_ipsec.
38
39config CHELSIO_TLS_DEVICE
40        tristate "Chelsio Inline KTLS Offload"
41        depends on CHELSIO_T4
42        depends on TLS
43        depends on TLS_DEVICE
44        help
45          This flag enables support for kernel tls offload over Chelsio T6
46          crypto accelerator. CONFIG_CHELSIO_TLS_DEVICE flag can be enabled
47          only if CONFIG_TLS and CONFIG_TLS_DEVICE flags are enabled.
48
49	  To compile this driver as a module, choose M here: the module
50	  will be called ch_ktls.
51
52endif # CHELSIO_INLINE_CRYPTO
53