]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
nvmet-tcp: select CONFIG_TLS from CONFIG_NVME_TARGET_TCP_TLS
authorAlistair Francis <alistair.francis@wdc.com>
Tue, 29 Apr 2025 22:23:47 +0000 (08:23 +1000)
committerChristoph Hellwig <hch@lst.de>
Wed, 30 Apr 2025 13:08:53 +0000 (08:08 -0500)
Ensure that TLS support is enabled in the kernel when
CONFIG_NVME_TARGET_TCP_TLS is enabled. Without this the code compiles,
but does not actually work unless something else enables CONFIG_TLS.

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

index fb7446d6d6829bd08d2aa6f33b1275afb4d8d93b..4c253b433bf78d06b4aaacc6db8f6cb83d26fdb9 100644 (file)
@@ -98,6 +98,7 @@ config NVME_TARGET_TCP_TLS
        bool "NVMe over Fabrics TCP target TLS encryption support"
        depends on NVME_TARGET_TCP
        select NET_HANDSHAKE
+       select TLS
        help
          Enables TLS encryption for the NVMe TCP target using the netlink handshake API.