nvme-tcp: select CONFIG_TLS from CONFIG_NVME_TCP_TLS
authorAlistair Francis <alistair23@gmail.com>
Tue, 29 Apr 2025 22:40:25 +0000 (08:40 +1000)
committerChristoph Hellwig <hch@lst.de>
Wed, 30 Apr 2025 13:08:49 +0000 (08:08 -0500)
Ensure that TLS support is enabled in the kernel when
CONFIG_NVME_TCP_TLS is enabled. Without this the code compiles, but does
not actually work unless something else enables CONFIG_TLS.

Fixes: be8e82caa68 ("nvme-tcp: enable TLS handshake upcall")
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/Kconfig

index d47dfa80fb9560f76f824dbd428ee14dcec1ea86..4d64b6935bb91571139a53a4f6925f90ee54555f 100644 (file)
@@ -102,6 +102,7 @@ config NVME_TCP_TLS
        depends on NVME_TCP
        select NET_HANDSHAKE
        select KEYS
+       select TLS
        help
          Enables TLS encryption for NVMe TCP using the netlink handshake API.