• Hannes Reinecke's avatar
    nvmet-tcp: enable TLS handshake upcall · 675b453e
    Hannes Reinecke authored
    TLS handshake is handled in userspace with the netlink tls handshake
    protocol.
    
    The patch adds a function to start the TLS handshake upcall for any
    incoming network connections if the TCP TSAS sectype is set to 'tls1.3'.
    
    A config option NVME_TARGET_TCP_TLS selects whether the TLS handshake
    upcall should be compiled in.  The patch also adds reference counting
    to struct nvmet_tcp_queue to ensure the queue is always valid when the
    the TLS handshake completes.
    Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
    Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
    Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
    675b453e
configfs.c 51.4 KB