Skip to content

Commit

Permalink
chelsio/chtls: CHELSIO_INLINE_CRYPTO should depend on CHELSIO_T4
Browse files Browse the repository at this point in the history
While CHELSIO_INLINE_CRYPTO is a guard symbol, and just enabling it does
not cause any additional code to be compiled in, all configuration
options protected by it depend on CONFIG_CHELSIO_T4.  Hence it doesn't
make much sense to bother the user with the guard symbol question when
CONFIG_CHELSIO_T4 is disabled.

Fix this by moving the dependency from the individual config options to
the guard symbol.

Fixes: 44fd1c1 ("chelsio/chtls: separate chelsio tls driver from crypto driver")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Geert Uytterhoeven authored and David S. Miller committed Sep 3, 2020
1 parent cc50bb3 commit 6bd860a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/chelsio/inline_crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

config CHELSIO_INLINE_CRYPTO
bool "Chelsio Inline Crypto support"
depends on CHELSIO_T4
default y
help
Enable support for inline crypto.
Expand All @@ -14,7 +15,6 @@ 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.
Expand All @@ -25,7 +25,6 @@ config CRYPTO_DEV_CHELSIO_TLS

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
Expand Down

0 comments on commit 6bd860a

Please sign in to comment.