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