mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 11:33:36 -04:00
As CHELSIO_INLINE_CRYPTO is bool, and CHELSIO_T4 is tristate, the
dependency of CHELSIO_INLINE_CRYPTO on CHELSIO_T4 is not sufficient to
protect CRYPTO_DEV_CHELSIO_TLS and CHELSIO_IPSEC_INLINE. The latter two
are also tristate, hence if CHELSIO_T4=n, they cannot be builtin, as
that would lead to link failures like:
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c:259: undefined reference to `cxgb4_port_viid'
and
drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/chcr_ipsec.c:752: undefined reference to `cxgb4_reclaim_completed_tx'
Fix this by re-adding dependencies on CHELSIO_T4 to tristate symbols.
The dependency of CHELSIO_INLINE_CRYPTO on CHELSIO_T4 is kept to avoid
asking the user.
Fixes: 6bd860ac1c ("chelsio/chtls: CHELSIO_INLINE_CRYPTO should depend on CHELSIO_T4")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
53 lines
1.5 KiB
Plaintext
53 lines
1.5 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Chelsio inline crypto configuration
|
|
#
|
|
|
|
config CHELSIO_INLINE_CRYPTO
|
|
bool "Chelsio Inline Crypto support"
|
|
depends on CHELSIO_T4
|
|
default y
|
|
help
|
|
Enable support for inline crypto.
|
|
Allows enable/disable from list of inline crypto drivers.
|
|
|
|
if CHELSIO_INLINE_CRYPTO
|
|
|
|
config CRYPTO_DEV_CHELSIO_TLS
|
|
tristate "Chelsio Crypto Inline TLS Driver"
|
|
depends on CHELSIO_T4
|
|
depends on TLS_TOE
|
|
help
|
|
Support Chelsio Inline TLS with Chelsio crypto accelerator.
|
|
Enable inline TLS support for Tx and Rx.
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
will be called chtls.
|
|
|
|
config CHELSIO_IPSEC_INLINE
|
|
tristate "Chelsio IPSec XFRM Tx crypto offload"
|
|
depends on CHELSIO_T4
|
|
depends on XFRM_OFFLOAD
|
|
depends on INET_ESP_OFFLOAD || INET6_ESP_OFFLOAD
|
|
help
|
|
Support Chelsio Inline IPsec with Chelsio crypto accelerator.
|
|
Enable inline IPsec support for Tx.
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
will be called ch_ipsec.
|
|
|
|
config CHELSIO_TLS_DEVICE
|
|
tristate "Chelsio Inline KTLS Offload"
|
|
depends on CHELSIO_T4
|
|
depends on TLS
|
|
depends on TLS_DEVICE
|
|
help
|
|
This flag enables support for kernel tls offload over Chelsio T6
|
|
crypto accelerator. CONFIG_CHELSIO_TLS_DEVICE flag can be enabled
|
|
only if CONFIG_TLS and CONFIG_TLS_DEVICE flags are enabled.
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
will be called ch_ktls.
|
|
|
|
endif # CHELSIO_INLINE_CRYPTO
|